pub enum TraversalStrategy {
PreOrder,
PostOrder,
InOrder,
}
Expand description
The strategy to use when traversing the tree.
This enum represents the strategy to use when traversing the tree.
Variants§
PreOrder
Traverse the tree in pre-order. This means that the root node is visited first, then the left child, and then the right child.
PostOrder
Traverse the tree in post-order. This means that the left child is visited first, then the right child, and then the root node.
InOrder
Traverse the tree in in-order. This means that the left child is visited first, then the root node, and then the right child.
Trait Implementations§
Source§impl Clone for TraversalStrategy
impl Clone for TraversalStrategy
Source§fn clone(&self) -> TraversalStrategy
fn clone(&self) -> TraversalStrategy
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 moreSource§impl Debug for TraversalStrategy
impl Debug for TraversalStrategy
impl Copy for TraversalStrategy
Auto Trait Implementations§
impl Freeze for TraversalStrategy
impl RefUnwindSafe for TraversalStrategy
impl Send for TraversalStrategy
impl Sync for TraversalStrategy
impl Unpin for TraversalStrategy
impl UnwindSafe for TraversalStrategy
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