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