IteratorExt

Trait IteratorExt 

Source
pub trait IteratorExt<'a>: Iterator<Item = Entry<'a>> + Sized {
    // Provided methods
    fn limit(self, n: usize) -> LimitIterator<'a, Self>  { ... }
    fn filter_entries<F>(self, predicate: F) -> FilterIterator<'a, Self, F> 
       where F: Fn(&Entry<'a>) -> bool { ... }
}
Expand description

Extension trait for iterators

Provided Methods§

Source

fn limit(self, n: usize) -> LimitIterator<'a, Self>

Source

fn filter_entries<F>(self, predicate: F) -> FilterIterator<'a, Self, F>
where F: Fn(&Entry<'a>) -> bool,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, I: Iterator<Item = Entry<'a>>> IteratorExt<'a> for I