pub struct VarDef {
pub name: String,
pub value: Option<Box<Expr>>,
pub ty: Option<Ty>,
}
Fields§
§name: String
§value: Option<Box<Expr>>
§ty: Option<Ty>
Trait 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
source§impl PartialEq for VarDef
impl PartialEq for VarDef
impl StructuralPartialEq for VarDef
Auto Trait Implementations§
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