Enum tl::Node [−][src]
Expand description
An HTML Node
Variants
Tag(HTMLTag<'a>)
Tuple Fields
0: HTMLTag<'a>A regular HTML element/tag
Raw(Bytes<'a>)
Tuple Fields
0: Bytes<'a>Raw text (no particular HTML element)
Comment(Bytes<'a>)
Tuple Fields
0: Bytes<'a>Comment ()
Implementations
Returns the inner text of this node
Returns the inner HTML of this node
Returns an iterator over subnodes (“children”) of this HTML tag, if this is a tag
Calls the given closure with each tag as parameter
The closure must return a boolean, indicating whether it should stop iterating
Returning true will break the loop and return a handle to the node
Tries to coerce this node into a comment, returning the text
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> UnwindSafe for Node<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more