#[repr(C)]pub struct MatchBindingPattern<'gc> {
pub metadata: NodeMetadata<'gc>,
pub id: &'gc Node<'gc>,
pub kind: Cell<NodeLabel>,
}Expand description
The MatchBindingPattern AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
id: &'gc Node<'gc>ESTree id property.
kind: Cell<NodeLabel>ESTree kind property.
Implementations§
Source§impl<'gc> MatchBindingPattern<'gc>
impl<'gc> MatchBindingPattern<'gc>
Sourcepub fn new(
metadata: NodeMetadata<'gc>,
id: &'gc Node<'gc>,
kind: NodeLabel,
) -> Self
pub fn new( metadata: NodeMetadata<'gc>, id: &'gc Node<'gc>, kind: NodeLabel, ) -> Self
Build MatchBindingPattern from its metadata and ESTree.def fields.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for MatchBindingPattern<'gc>
impl<'gc> !RefUnwindSafe for MatchBindingPattern<'gc>
impl<'gc> !Send for MatchBindingPattern<'gc>
impl<'gc> !Sync for MatchBindingPattern<'gc>
impl<'gc> !UnwindSafe for MatchBindingPattern<'gc>
impl<'gc> Unpin for MatchBindingPattern<'gc>
impl<'gc> UnsafeUnpin for MatchBindingPattern<'gc>
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