pub struct MatchArrayPattern<'gc> { /* private fields */ }Expand description
Clone-with-changes builder for super::MatchArrayPattern.
Implementations§
Source§impl<'gc> MatchArrayPattern<'gc>
impl<'gc> MatchArrayPattern<'gc>
Sourcepub fn from_node(node: &'gc MatchArrayPattern<'gc>) -> Self
pub fn from_node(node: &'gc MatchArrayPattern<'gc>) -> Self
Start from a copy of node, with no field changed yet.
Sourcepub fn build(self, gc: &'gc GCLock<'_, '_>) -> TransformResult<&'gc Node<'gc>>
pub fn build(self, gc: &'gc GCLock<'_, '_>) -> TransformResult<&'gc Node<'gc>>
Allocate the rebuilt node if a setter ran, else
TransformResult::Unchanged.
Sourcepub fn build_forced(self, gc: &'gc GCLock<'_, '_>) -> &'gc Node<'gc>
pub fn build_forced(self, gc: &'gc GCLock<'_, '_>) -> &'gc Node<'gc>
Allocate the node unconditionally, changed or not.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for MatchArrayPattern<'gc>
impl<'gc> !RefUnwindSafe for MatchArrayPattern<'gc>
impl<'gc> !Send for MatchArrayPattern<'gc>
impl<'gc> !Sync for MatchArrayPattern<'gc>
impl<'gc> !UnwindSafe for MatchArrayPattern<'gc>
impl<'gc> Unpin for MatchArrayPattern<'gc>
impl<'gc> UnsafeUnpin for MatchArrayPattern<'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