pub struct Ignore;Expand description
A unit type that implements ErrorCollector. Ignores all errors and runs the iterator to
completion
Trait Implementations§
Source§impl<E> ErrorCollector<E> for Ignore
impl<E> ErrorCollector<E> for Ignore
Source§type Collection = Infallible
type Collection = Infallible
The type to be returned after the iteration has been stopped
Source§fn push_err(&mut self, _err: E) -> ControlFlow
fn push_err(&mut self, _err: E) -> ControlFlow
Processes an error. Returns an
ControlFlow type indicating whether the iteration shall stop
or not.Source§fn with_value<T>(self, val: T) -> Result<T, Self::Collection>
fn with_value<T>(self, val: T) -> Result<T, Self::Collection>
Returns
Ok(val) if the iteration run to completion, or an error collection of type
Self::Collection if error(s) were encountered.impl Copy for Ignore
Auto Trait Implementations§
impl Freeze for Ignore
impl RefUnwindSafe for Ignore
impl Send for Ignore
impl Sync for Ignore
impl Unpin for Ignore
impl UnwindSafe for Ignore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more