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