pub struct Main(/* private fields */);Expand description
An adapter to pretty-print an error source chain.
§Example
fn main() -> Result<(), errors::Main> {
// Any program that returns a normal `impl Error`
Err("ruh roh")?;
Ok(())
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for Main
impl !RefUnwindSafe for Main
impl Send for Main
impl Sync for Main
impl Unpin for Main
impl !UnwindSafe for Main
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