pub enum NodeEdgeWithDepth<T> {
Start(T, u32),
End(T, u32),
}
Expand description
Indicator if the node is at a start or endpoint of the tree
Variants§
Start(T, u32)
Indicates that start of a node that has children. Yielded by TraverseIter::next
before the
node’s descendants.
End(T, u32)
Indicates that end of a node that has children. Yielded by TraverseIter::next
after the
node’s descendants.
Trait Implementations§
Source§impl<T: Clone> Clone for NodeEdgeWithDepth<T>
impl<T: Clone> Clone for NodeEdgeWithDepth<T>
Source§fn clone(&self) -> NodeEdgeWithDepth<T>
fn clone(&self) -> NodeEdgeWithDepth<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for NodeEdgeWithDepth<T>where
T: Freeze,
impl<T> RefUnwindSafe for NodeEdgeWithDepth<T>where
T: RefUnwindSafe,
impl<T> Send for NodeEdgeWithDepth<T>where
T: Send,
impl<T> Sync for NodeEdgeWithDepth<T>where
T: Sync,
impl<T> Unpin for NodeEdgeWithDepth<T>where
T: Unpin,
impl<T> UnwindSafe for NodeEdgeWithDepth<T>where
T: UnwindSafe,
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