1 2 3 4 5 6 7 8 9
use auto_impl::auto_impl; // TODO : Change the name of the trait #[auto_impl(&mut, Box)] pub trait ErrorGetter { type Error; fn take_error(&mut self) -> Result<(), Self::Error>; }