pub struct VistrMut<'a, T: HasAabb> { /* fields omitted */ }
Tree Iterator that returns a reference to each node.
It also returns the non-leaf specific data when it applies.
It is safe to borrow the iterator and then produce mutable references from that
as long as by the time the borrow ends, all the produced references also go away.
It is safe to borrow the iterator and then produce mutable references from that
as long as by the time the borrow ends, all the produced references also go away.
The resulting type after dereferencing.
The common item produced for both leafs and non leafs.
Consume this visitor, and produce the element it was pointing to along with it's children visitors. Read more
Return the levels remaining including the one that will be produced by consuming this iterator. So if you first made this object from the root for a tree of size 5, it should return 5. Think of is as height-depth. This is used to make good allocations when doing dfs and bfs. Defaults to (0,None) Read more
Calls the closure in dfs preorder (root,left,right). Takes advantage of the callstack to do dfs. Read more
Iterator Adapter to also produce the depth each iteration.
Combine two tree visitors.
Only produce children up to num.
Flips left and right children.
Provides an iterator that returns each element in bfs order.
Provides a dfs preorder iterator. Unlike the callback version, This one relies on dynamic allocation for its stack. Read more
fn dfs_inorder<impl FnMut(Self::Item)>(self, func: impl FnMut(Self::Item)) where impl FnMut(Self::Item): FnMut(Self::Item), | [src] |
Calls the closure in dfs preorder (left,right,root). Takes advantage of the callstack to do dfs. Read more
fn dfs_postorder<impl FnMut(Self::Item)>(self, func: impl FnMut(Self::Item)) where impl FnMut(Self::Item): FnMut(Self::Item), | [src] |
Calls the closure in dfs preorder (left,right,root). Takes advantage of the callstack to do dfs. Read more
type Error = !
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more