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