pub enum PatternType {
PatternWhichCanBeExpression(ExpressionPatternType),
ObjectPattern {
meta: Meta,
properties: Vec<AssignmentPropertyData>,
},
ArrayPattern {
meta: Meta,
elements: Vec<Option<Box<PatternType>>>,
},
RestElement {
meta: Meta,
argument: Box<PatternType>,
},
AssignmentPattern {
meta: Meta,
left: Box<PatternType>,
right: Box<ExpressionType>,
},
}Variants§
PatternWhichCanBeExpression(ExpressionPatternType)
ObjectPattern
ArrayPattern
RestElement
AssignmentPattern
Trait Implementations§
Source§impl Debug for PatternType
impl Debug for PatternType
Auto Trait Implementations§
impl Freeze for PatternType
impl RefUnwindSafe for PatternType
impl !Send for PatternType
impl !Sync for PatternType
impl Unpin for PatternType
impl UnwindSafe for PatternType
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