[−][src]Struct dinotree_alg::prelude::VistrMut
Tree Iterator that returns a protected mutable reference to each node.
Methods
impl<'a, N: Node> VistrMut<'a, N>
[src]
pub fn create_wrap_mut(&mut self) -> VistrMut<N>
[src]
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.
Trait Implementations
impl<'a, N: Node> Deref for VistrMut<'a, N>
[src]
type Target = Vistr<'a, N>
The resulting type after dereferencing.
fn deref(&self) -> &Vistr<'a, N>
[src]
impl<'a, N: Node> FixedDepthVisitor for VistrMut<'a, N>
[src]
impl<'a, N: Node> Visitor for VistrMut<'a, N>
[src]
type Item = PMut<'a, N>
The common item produced for both leafs and non leafs.
fn next(self) -> (Self::Item, Option<[Self; 2]>)
[src]
fn level_remaining_hint(&self) -> (usize, Option<usize>)
[src]
fn dfs_preorder(self, func: impl FnMut(Self::Item))
[src]
fn with_depth(self, start_depth: Depth) -> LevelIter<Self>
[src]
fn zip<F>(self, f: F) -> Zip<Self, F> where
F: Visitor,
[src]
F: Visitor,
fn map<B, F>(self, func: F) -> Map<Self, F> where
F: Fn(Self::Item) -> B,
[src]
F: Fn(Self::Item) -> B,
fn take(self, num: usize) -> Take<Self>
[src]
fn flip(self) -> Flip<Self>
[src]
ⓘImportant traits for DfsPreOrderIter<C>fn dfs_preorder_iter(self) -> DfsPreOrderIter<Self>
[src]
ⓘImportant traits for DfsPreOrderIter<C>
ⓘImportant traits for DfsInOrderIter<C>fn dfs_inorder_iter(self) -> DfsInOrderIter<Self>
[src]
ⓘImportant traits for DfsInOrderIter<C>
fn dfs_inorder(self, func: impl FnMut(Self::Item))
[src]
fn dfs_postorder(self, func: impl FnMut(Self::Item))
[src]
Auto Trait Implementations
impl<'a, N> RefUnwindSafe for VistrMut<'a, N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<'a, N> Send for VistrMut<'a, N> where
N: Send,
N: Send,
impl<'a, N> Sync for VistrMut<'a, N> where
N: Sync,
N: Sync,
impl<'a, N> Unpin for VistrMut<'a, N>
impl<'a, N> !UnwindSafe for VistrMut<'a, N>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut I
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,