pub trait CollectError<T, E> {
// Required method
fn collect_err(self, collector: &mut ErrorCollector<E>) -> Option<T>;
}
Expand description
Extension trait for Result types to collect errors
Required Methods§
Sourcefn collect_err(self, collector: &mut ErrorCollector<E>) -> Option<T>
fn collect_err(self, collector: &mut ErrorCollector<E>) -> Option<T>
Collect an error into an ErrorCollector if the result is an error