pub enum Node<'a> {
Element(Element<'a>),
Text(&'a str),
Text2(String),
Entity(&'static str),
Verbatim(String),
Cdata(&'a str),
Comment(String),
Doctype(&'a str),
Fragment(Vec<Node<'a>>),
}Variants§
Element(Element<'a>)
Text(&'a str)
Text2(String)
Entity(&'static str)
Verbatim(String)
Cdata(&'a str)
Comment(String)
Doctype(&'a str)
Fragment(Vec<Node<'a>>)
Implementations§
Source§impl Node<'_>
impl Node<'_>
pub fn is_block_level(&self) -> bool
pub fn is_whitespace(&self) -> bool
Sourcepub fn is_element(&self) -> bool
pub fn is_element(&self) -> bool
Returns true if the node is Element.
Trait Implementations§
Auto Trait Implementations§
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> 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