pub enum NodeEdge<T> {
Start(Node<T>),
End(Node<T>),
}
Expand description
A node type during traverse.
Variants§
Start(Node<T>)
Indicates that start of a node that has children.
Yielded by Traverse::next
before the node’s descendants.
In HTML or XML, this corresponds to an opening tag like <div>
End(Node<T>)
Indicates that end of a node that has children.
Yielded by Traverse::next
after the node’s descendants.
In HTML or XML, this corresponds to a closing tag like </div>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for NodeEdge<T>
impl<T> !Send for NodeEdge<T>
impl<T> !Sync for NodeEdge<T>
impl<T> Unpin for NodeEdge<T>
impl<T> !UnwindSafe for NodeEdge<T>
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