pub enum Node<'a> {
Element(Name<'a>),
Text(&'a str),
Other,
}Expand description
One callback-local XML node view, preserving text-node distinctions.
Variants§
Element(Name<'a>)
An element’s expanded name.
Text(&'a str)
XML-normalized character data, not original encoded document bytes.
Other
A comment, processing instruction or other non-element node.
Trait Implementations§
impl<'a> Copy for Node<'a>
impl<'a> Eq for Node<'a>
impl<'a> StructuralPartialEq for Node<'a>
Auto Trait Implementations§
impl<'a> Forget for Node<'a>
impl<'a> Freeze for Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnsafeUnpin for Node<'a>
impl<'a> UnwindSafe for Node<'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