[−][src]Struct broccoli::node::VistrMut
Tree Iterator that returns a protected mutable reference to each node.
Implementations
impl<'a, N> 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.
pub fn as_slice_mut(&mut self) -> PMut<'_, [N]>
[src]
pub fn into_slice(self) -> PMut<'a, [N]>
[src]
Methods from Deref<Target = Vistr<'a, N>>
Trait Implementations
impl<'a, N> 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> FixedDepthVisitor for VistrMut<'a, N>
[src]
fn get_height(&self) -> usize
[src]
impl<'a, N> 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]
fn dfs_preorder_iter(self) -> DfsPreOrderIter<Self>ⓘNotable traits for DfsPreOrderIter<C>
impl<C> Iterator for DfsPreOrderIter<C> where
C: Visitor, type Item = <C as Visitor>::Item;
[src]
Notable traits for DfsPreOrderIter<C>
impl<C> Iterator for DfsPreOrderIter<C> where
C: Visitor, type Item = <C as Visitor>::Item;
fn dfs_inorder_iter(self) -> DfsInOrderIter<Self>ⓘNotable traits for DfsInOrderIter<C>
impl<C> Iterator for DfsInOrderIter<C> where
C: Visitor, type Item = <C as Visitor>::Item;
[src]
Notable traits for DfsInOrderIter<C>
impl<C> Iterator for DfsInOrderIter<C> where
C: Visitor, type Item = <C as Visitor>::Item;
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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>,