pub struct ConstantDecl {
    pub name: Node<SmolStr>,
    pub typ: Node<TypeDesc>,
    pub value: Node<Expr>,
    pub pub_qual: Option<Span>,
}Fields§
§name: Node<SmolStr>§typ: Node<TypeDesc>§value: Node<Expr>§pub_qual: Option<Span>Trait Implementations§
Source§impl Clone for ConstantDecl
 
impl Clone for ConstantDecl
Source§fn clone(&self) -> ConstantDecl
 
fn clone(&self) -> ConstantDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ConstantDecl
 
impl Debug for ConstantDecl
Source§impl<'de> Deserialize<'de> for ConstantDecl
 
impl<'de> Deserialize<'de> for ConstantDecl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConstantDecl
 
impl Display for ConstantDecl
Source§impl Hash for ConstantDecl
 
impl Hash for ConstantDecl
Source§impl PartialEq for ConstantDecl
 
impl PartialEq for ConstantDecl
Source§impl Serialize for ConstantDecl
 
impl Serialize for ConstantDecl
impl Eq for ConstantDecl
impl StructuralPartialEq for ConstantDecl
Auto Trait Implementations§
impl Freeze for ConstantDecl
impl RefUnwindSafe for ConstantDecl
impl Send for ConstantDecl
impl Sync for ConstantDecl
impl Unpin for ConstantDecl
impl UnwindSafe for ConstantDecl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.