pub struct TSVoidKeyword<'gc> { /* private fields */ }Expand description
Clone-with-changes builder for super::TSVoidKeyword.
Implementations§
Source§impl<'gc> TSVoidKeyword<'gc>
impl<'gc> TSVoidKeyword<'gc>
Sourcepub fn from_node(node: &'gc TSVoidKeyword<'gc>) -> Self
pub fn from_node(node: &'gc TSVoidKeyword<'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 TSVoidKeyword<'gc>
impl<'gc> !RefUnwindSafe for TSVoidKeyword<'gc>
impl<'gc> !Send for TSVoidKeyword<'gc>
impl<'gc> !Sync for TSVoidKeyword<'gc>
impl<'gc> !UnwindSafe for TSVoidKeyword<'gc>
impl<'gc> Unpin for TSVoidKeyword<'gc>
impl<'gc> UnsafeUnpin for TSVoidKeyword<'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