pub trait Grinder {
type Item: Chisel;
type Error;
// Required methods
fn next(&mut self) -> Self::Item;
fn emit(&mut self, err: Self::Error);
// Provided methods
fn vent<F, E>(self, f: F) -> Vent<Self, F, E>
where Self: Sized,
F: Fn(E) { ... }
fn unwrap(self) -> Unwrap<Self>
where Self: Sized { ... }
fn map_err<F, E>(self, f: F) -> MapErrGrinder<Self, F, E>
where Self: Sized,
F: Fn(E) -> Self::Error { ... }
fn peekable(self) -> Peekable<Self>
where Self: Sized { ... }
fn lookaheadable(self) -> Lookahead<Self>
where Self: Sized { ... }
fn filter<F>(self, f: F) -> Filter<Self, F>
where Self: Sized,
F: Fn(&<Self::Item as Chisel>::Value) -> bool { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
fn vent<F, E>(self, f: F) -> Vent<Self, F, E>
fn unwrap(self) -> Unwrap<Self>where
Self: Sized,
fn map_err<F, E>(self, f: F) -> MapErrGrinder<Self, F, E>
fn peekable(self) -> Peekable<Self>where
Self: Sized,
fn lookaheadable(self) -> Lookahead<Self>where
Self: Sized,
fn filter<F>(self, f: F) -> Filter<Self, F>
Trait Implementations§
Source§impl<I, C: Chisel<Value = I>, E> Iterator for dyn Grinder<Item = C, Error = E>
impl<I, C: Chisel<Value = I>, E> Iterator for dyn Grinder<Item = C, Error = E>
1.0.0 · Source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more