pub enum BindPattern {
Variable(Identifier),
Array(Vec<BindPattern>),
Object(Vec<ObjectBindPatternEntry>),
}Variants§
Variable(Identifier)
<variable>
Array(Vec<BindPattern>)
'[' <patten> (',' <pattern>)* ']'
Object(Vec<ObjectBindPatternEntry>)
'{' <object pattern elem> (',' <object pattern elem>)* '}'
Trait Implementations§
Source§impl Clone for BindPattern
impl Clone for BindPattern
Source§fn clone(&self) -> BindPattern
fn clone(&self) -> BindPattern
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 BindPattern
impl Debug for BindPattern
Source§impl PartialEq for BindPattern
impl PartialEq for BindPattern
impl Eq for BindPattern
impl StructuralPartialEq for BindPattern
Auto Trait Implementations§
impl Freeze for BindPattern
impl RefUnwindSafe for BindPattern
impl Send for BindPattern
impl Sync for BindPattern
impl Unpin for BindPattern
impl UnwindSafe for BindPattern
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