pub trait ErrorCollector<E> {
type Result;
// Required methods
fn collect(&mut self, err: E);
fn into_result(self) -> Self::Result;
}
pub trait ErrorCollector<E> {
type Result;
// Required methods
fn collect(&mut self, err: E);
fn into_result(self) -> Self::Result;
}