pub enum NodeKind<'a> {
Element(Element<'a>),
Text(&'a str),
Other(&'a str),
}Expand description
What a node holds, borrowed zero-copy from a Document’s arena.
Variants§
Element(Element<'a>)
An element.
Text(&'a str)
Character data, with entity references resolved.
Other(&'a str)
A comment, a processing instruction or the XML declaration, kept as written.
Trait Implementations§
impl<'a> Copy for NodeKind<'a>
impl<'a> Eq for NodeKind<'a>
impl<'a> StructuralPartialEq for NodeKind<'a>
Auto Trait Implementations§
impl<'a> Forget for NodeKind<'a>
impl<'a> Freeze for NodeKind<'a>
impl<'a> Move for NodeKind<'a>
impl<'a> RefUnwindSafe for NodeKind<'a>
impl<'a> Send for NodeKind<'a>
impl<'a> Sync for NodeKind<'a>
impl<'a> Unpin for NodeKind<'a>
impl<'a> UnsafeUnpin for NodeKind<'a>
impl<'a> UnwindSafe for NodeKind<'a>
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