pub enum TraversalType {
PreOrder,
InOrder,
PostOrder,
LevelOrder,
}
Expand description
The classic traversal types of binary tree.
Variants§
Trait Implementations§
Source§impl Clone for TraversalType
impl Clone for TraversalType
Source§fn clone(&self) -> TraversalType
fn clone(&self) -> TraversalType
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 TraversalType
impl Debug for TraversalType
Source§impl Ord for TraversalType
impl Ord for TraversalType
Source§fn cmp(&self, other: &TraversalType) -> Ordering
fn cmp(&self, other: &TraversalType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TraversalType
impl PartialEq for TraversalType
Source§impl PartialOrd for TraversalType
impl PartialOrd for TraversalType
impl Eq for TraversalType
impl StructuralPartialEq for TraversalType
Auto Trait Implementations§
impl Freeze for TraversalType
impl RefUnwindSafe for TraversalType
impl Send for TraversalType
impl Sync for TraversalType
impl Unpin for TraversalType
impl UnwindSafe for TraversalType
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