[−][src]Struct compt::Map
Map iterator adapter
Trait Implementations
impl<B, C: FixedDepthVisitor, F: Fn(C::Item) -> B + Clone> FixedDepthVisitor for Map<C, F>
[src]
pub fn get_height(&self) -> usize
[src]
impl<B, C: Visitor, F: Fn(C::Item) -> B + Clone> Visitor for Map<C, F>
[src]
type Item = B
The common item produced for both leafs and non leafs.
pub fn next(self) -> (Self::Item, Option<[Self; 2]>)
[src]
pub fn level_remaining_hint(&self) -> (usize, Option<usize>)
[src]
pub fn with_depth(self, start_depth: Depth) -> LevelIter<Self>
[src]
pub fn zip<F: Visitor>(self, f: F) -> Zip<Self, F>
[src]
pub fn map<B, F: Fn(Self::Item) -> B>(self, func: F) -> Map<Self, F>
[src]
pub fn take(self, num: usize) -> Take<Self>
[src]
pub fn flip(self) -> Flip<Self>
[src]
pub fn dfs_preorder_iter(self) -> DfsPreOrderIter<Self>ⓘNotable traits for DfsPreOrderIter<C>
impl<C: Visitor> Iterator for DfsPreOrderIter<C> type Item = C::Item;
[src]
Notable traits for DfsPreOrderIter<C>
impl<C: Visitor> Iterator for DfsPreOrderIter<C> type Item = C::Item;
pub fn dfs_inorder_iter(self) -> DfsInOrderIter<Self>ⓘNotable traits for DfsInOrderIter<C>
impl<C: Visitor> Iterator for DfsInOrderIter<C> type Item = C::Item;
[src]
Notable traits for DfsInOrderIter<C>
impl<C: Visitor> Iterator for DfsInOrderIter<C> type Item = C::Item;
pub fn dfs_preorder(self, func: impl FnMut(Self::Item))
[src]
pub fn dfs_inorder(self, func: impl FnMut(Self::Item))
[src]
pub fn dfs_postorder(self, func: impl FnMut(Self::Item))
[src]
Auto Trait Implementations
impl<C, F> Send for Map<C, F> where
C: Send,
F: Send,
C: Send,
F: Send,
impl<C, F> Sync for Map<C, F> where
C: Sync,
F: Sync,
C: Sync,
F: Sync,
impl<C, F> Unpin for Map<C, F> where
C: Unpin,
F: Unpin,
C: Unpin,
F: Unpin,
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, 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>,