pub enum Binding {
Object {
fields: Vec<ObjectPatternField>,
rest: Option<Ident>,
span: Span,
},
Array {
elems: Vec<Option<Ident>>,
defaults: Vec<Option<ExprId>>,
rest: Option<Ident>,
span: Span,
},
}Expand description
Destructuring binding pattern. Plain Ident bindings stay as Let/Const stmts; only {…} / […] forms appear here.
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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