Struct structures::map::traversable::tree::TreeTraverser
source · pub struct TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,{ /* private fields */ }Expand description
Contains data for traversing a ‘tree’.
Implementations§
source§impl<K, V> TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,
impl<K, V> TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,
TreeTraverser functions
Trait Implementations§
source§impl<K, V> RevTraverser<K> for TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,
impl<K, V> RevTraverser<K> for TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,
source§impl<K, V> Traverser<K> for TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,
impl<K, V> Traverser<K> for TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,
source§impl<K, V> TreeCollectionTraverser<K> for TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,
impl<K, V> TreeCollectionTraverser<K> for TreeTraverser<K, V>where
K: PartialEq + PartialOrd + Clone + Debug + Eq + Hash,
V: PartialEq + PartialOrd + Clone + Debug,
source§fn inorder(&mut self)
fn inorder(&mut self)
Sets the ‘tree traversal mode’ of this ‘tree collection traverser’ to follow inorder traversal. This is the default ‘tree traversal mode’.
source§fn level_order(&mut self)
fn level_order(&mut self)
Sets the ‘tree traversal mode’ of this ‘tree collection traverse’ to follow level order traversal.
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for TreeTraverser<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for TreeTraverser<K, V>
impl<K, V> Sync for TreeTraverser<K, V>
impl<K, V> Unpin for TreeTraverser<K, V>
impl<K, V> UnwindSafe for TreeTraverser<K, V>where
K: UnwindSafe,
V: 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