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