pub struct VarDef {
pub name: String,
pub value: Box<Expr>,
pub ty_expr: Option<Box<Expr>>,
pub kind: VarDefKind,
}Fields§
§name: String§value: Box<Expr>§ty_expr: Option<Box<Expr>>§kind: VarDefKindTrait Implementations§
Source§impl<'de> Deserialize<'de> for VarDef
impl<'de> Deserialize<'de> for VarDef
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
impl StructuralPartialEq for VarDef
Auto Trait Implementations§
impl Freeze for VarDef
impl RefUnwindSafe for VarDef
impl Send for VarDef
impl Sync for VarDef
impl Unpin for VarDef
impl UnwindSafe for VarDef
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