[−][src]Struct compt::Take
Only returns children up untill level num.
Trait Implementations
impl<T: Visitor> Visitor for Take<T>
[src]
type Item = T::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<T> Send for Take<T> where
T: Send,
T: Send,
impl<T> Sync for Take<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Take<T> where
T: Unpin,
T: 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>,