pub struct ConstDeclDef {
pub name: String,
pub type_ann: Option<TypeExpr>,
pub value: Expr,
pub span: Span,
}Fields§
§name: String§type_ann: Option<TypeExpr>§value: Expr§span: SpanTrait Implementations§
Source§impl Clone for ConstDeclDef
impl Clone for ConstDeclDef
Source§fn clone(&self) -> ConstDeclDef
fn clone(&self) -> ConstDeclDef
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 ConstDeclDef
impl Debug for ConstDeclDef
Source§impl<'de> Deserialize<'de> for ConstDeclDef
impl<'de> Deserialize<'de> for ConstDeclDef
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 ConstDeclDef
impl RefUnwindSafe for ConstDeclDef
impl Send for ConstDeclDef
impl Sync for ConstDeclDef
impl Unpin for ConstDeclDef
impl UnwindSafe for ConstDeclDef
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