pub trait ErrorReport<T> { // Required methods fn report_err(&self); fn ok_and_report(self) -> Option<T>; }