pub enum VarKind<'input> {
Named(Ident<'input>, Box<Option<Expr<'input>>>),
PatternList(VarPatternList<'input>, Box<Expr<'input>>),
PatternMap(VarPatternMap<'input>, Box<Expr<'input>>),
}
Expand description
The kind of a variable.
Variants§
Named(Ident<'input>, Box<Option<Expr<'input>>>)
PatternList(VarPatternList<'input>, Box<Expr<'input>>)
PatternMap(VarPatternMap<'input>, Box<Expr<'input>>)
Trait Implementations§
impl<'input> StructuralPartialEq for VarKind<'input>
Auto Trait Implementations§
impl<'input> Freeze for VarKind<'input>
impl<'input> RefUnwindSafe for VarKind<'input>
impl<'input> Send for VarKind<'input>
impl<'input> Sync for VarKind<'input>
impl<'input> Unpin for VarKind<'input>
impl<'input> UnwindSafe for VarKind<'input>
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