Enum NodeEdge

pub enum NodeEdge<T>

An edge of the node graph returned by a traversal iterator.

Variants

Start(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(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

impl<T: Clone> Clone for NodeEdge<T>

fn clone(&self) -> NodeEdge<T>

impl<T: Debug> Debug for NodeEdge<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<T> Freeze for NodeEdge<T> where T: Freeze + Freeze,

impl<T> RefUnwindSafe for NodeEdge<T> where T: RefUnwindSafe + RefUnwindSafe,

impl<T> Send for NodeEdge<T> where T: Send + Send,

impl<T> Sync for NodeEdge<T> where T: Sync + Sync,

impl<T> Unpin for NodeEdge<T> where T: Unpin + Unpin,

impl<T> UnsafeUnpin for NodeEdge<T> where T: UnsafeUnpin + UnsafeUnpin,

impl<T> UnwindSafe for NodeEdge<T> where T: UnwindSafe + UnwindSafe,

Blanket Implementations

impl<T> Any for NodeEdge<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for NodeEdge<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for NodeEdge<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for NodeEdge<T> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for NodeEdge<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for NodeEdge<T> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for NodeEdge<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for NodeEdge<T> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for NodeEdge<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>