[−][src]Struct compt::Zip
Tree visitor that zips up two seperate visitors. If one of the iterators returns None for its children, this iterator will return None.
Implementations
impl<T1: Visitor, T2: Visitor> Zip<T1, T2>[src]
pub fn into_inner(self) -> (T1, T2)[src]
pub fn as_inner(&self) -> (&T1, &T2)[src]
pub fn as_inner_mut(&mut self) -> (&mut T1, &mut T2)[src]
Trait Implementations
impl<T1: FixedDepthVisitor, T2: FixedDepthVisitor> FixedDepthVisitor for Zip<T1, T2>[src]
pub fn get_height(&self) -> usize[src]
impl<T1: Visitor, T2: Visitor> Visitor for Zip<T1, T2>[src]
type Item = (T1::Item, T2::Item)
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<T1, T2> Send for Zip<T1, T2> where
T1: Send,
T2: Send,
T1: Send,
T2: Send,
impl<T1, T2> Sync for Zip<T1, T2> where
T1: Sync,
T2: Sync,
T1: Sync,
T2: Sync,
impl<T1, T2> Unpin for Zip<T1, T2> where
T1: Unpin,
T2: Unpin,
T1: Unpin,
T2: 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>,