Enum html5ever::tree_builder::NodeOrText
source · pub enum NodeOrText<Handle> {
AppendNode(Handle),
AppendText(Tendril<UTF8>),
}
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§
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