pub enum Traversal {
Bfs,
Dfs,
}Expand description
Tree traversal order.
Variants§
Bfs
Breadth-first: print all nodes at level N, then N-1, down to leaves.
Dfs
Depth-first: print a node, then recursively its children.
Trait Implementations§
impl Copy for Traversal
impl Eq for Traversal
impl StructuralPartialEq for Traversal
Auto Trait Implementations§
impl Freeze for Traversal
impl RefUnwindSafe for Traversal
impl Send for Traversal
impl Sync for Traversal
impl Unpin for Traversal
impl UnsafeUnpin for Traversal
impl UnwindSafe for Traversal
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