pub enum NodeView<'a> {
Element {
namespace: Option<&'a str>,
local_name: &'a str,
},
Text(&'a str),
Other,
}Expand description
One original node, borrowed only for the visitor.
Variants§
Element
An element’s expanded name; prefixes do not participate.
Fields
Text(&'a str)
Expanded character data, including CDATA; not original source bytes.
Other
A comment, processing instruction or the document root.
Trait Implementations§
impl<'a> Copy for NodeView<'a>
impl<'a> Eq for NodeView<'a>
impl<'a> StructuralPartialEq for NodeView<'a>
Auto Trait Implementations§
impl<'a> Freeze for NodeView<'a>
impl<'a> RefUnwindSafe for NodeView<'a>
impl<'a> Send for NodeView<'a>
impl<'a> Sync for NodeView<'a>
impl<'a> Unpin for NodeView<'a>
impl<'a> UnsafeUnpin for NodeView<'a>
impl<'a> UnwindSafe for NodeView<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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