pub enum PatternElement {
Pattern(Pattern),
Property {
key: PropName,
value: Pattern,
shorthand: bool,
span: Span,
},
}Expand description
An element of an array or object pattern.
Variants§
Pattern(Pattern)
A nested pattern (array element, or an object property’s value).
Property
An object property with an explicit key.
Trait Implementations§
Source§impl Clone for PatternElement
impl Clone for PatternElement
Source§impl Debug for PatternElement
impl Debug for PatternElement
Source§impl PartialEq for PatternElement
impl PartialEq for PatternElement
impl StructuralPartialEq for PatternElement
Auto Trait Implementations§
impl Forget for PatternElement
impl Freeze for PatternElement
impl Move for PatternElement
impl RefUnwindSafe for PatternElement
impl Send for PatternElement
impl Sync for PatternElement
impl Unpin for PatternElement
impl UnsafeUnpin for PatternElement
impl UnwindSafe for PatternElement
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