pub struct ConstDeclaration {
pub name: Ident,
pub type_: Type,
pub value: Expression,
pub span: Span,
}
Fields§
§name: Ident
§type_: Type
§value: Expression
§span: Span
Trait Implementations§
Source§impl Clone for ConstDeclaration
impl Clone for ConstDeclaration
Source§fn clone(&self) -> ConstDeclaration
fn clone(&self) -> ConstDeclaration
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<'de> Deserialize<'de> for ConstDeclaration
impl<'de> Deserialize<'de> for ConstDeclaration
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
Auto Trait Implementations§
impl Freeze for ConstDeclaration
impl RefUnwindSafe for ConstDeclaration
impl Send for ConstDeclaration
impl Sync for ConstDeclaration
impl Unpin for ConstDeclaration
impl UnwindSafe for ConstDeclaration
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