pub enum NodeOrText<Handle> {
AppendNode(Handle),
AppendText(StrTendril),
}
Expand description
Something which can be inserted into the DOM.
Adjacent sibling text nodes are merged into a single node, so
the sink may not want to allocate a Handle
for each.
Variants§
AppendNode(Handle)
AppendText(StrTendril)
Auto Trait Implementations§
impl<Handle> !Freeze for NodeOrText<Handle>
impl<Handle> !RefUnwindSafe for NodeOrText<Handle>
impl<Handle> !Send for NodeOrText<Handle>
impl<Handle> !Sync for NodeOrText<Handle>
impl<Handle> Unpin for NodeOrText<Handle>where
Handle: Unpin,
impl<Handle> UnwindSafe for NodeOrText<Handle>where
Handle: UnwindSafe,
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