pub struct TypeofTypeAnnotation<'gc> { /* private fields */ }Expand description
Clone-with-changes builder for super::TypeofTypeAnnotation.
Implementations§
Source§impl<'gc> TypeofTypeAnnotation<'gc>
impl<'gc> TypeofTypeAnnotation<'gc>
Sourcepub fn from_node(node: &'gc TypeofTypeAnnotation<'gc>) -> Self
pub fn from_node(node: &'gc TypeofTypeAnnotation<'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.
Sourcepub fn argument(&mut self, argument: &'gc Node<'gc>)
pub fn argument(&mut self, argument: &'gc Node<'gc>)
Set the argument field and mark the builder changed.
Sourcepub fn type_arguments(&mut self, type_arguments: Option<&'gc Node<'gc>>)
pub fn type_arguments(&mut self, type_arguments: Option<&'gc Node<'gc>>)
Set the type_arguments field and mark the builder changed.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for TypeofTypeAnnotation<'gc>
impl<'gc> !RefUnwindSafe for TypeofTypeAnnotation<'gc>
impl<'gc> !Send for TypeofTypeAnnotation<'gc>
impl<'gc> !Sync for TypeofTypeAnnotation<'gc>
impl<'gc> !UnwindSafe for TypeofTypeAnnotation<'gc>
impl<'gc> Unpin for TypeofTypeAnnotation<'gc>
impl<'gc> UnsafeUnpin for TypeofTypeAnnotation<'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