Struct easy_error::Terminator [−][src]
pub struct Terminator { /* fields omitted */ }
An error that wraps all other error types for a nicer debug output.
Given the current implementation of the Termination
trait, and the
implementation for every type that implements Debug
, having a main
function that returns a Result
requires either using a type that
implements the Debug
trait poorly or dealing with an output that isn’t
very user friendly.
The types here help alleviate those issues. To begin with, we have an
Error
type that simply wraps any possible error and implements Debug
in
such a way as to make the output look nice. Additionally, there is a
Result
specialization in order to make the main
function a little
cleaner.
Trait Implementations
impl<E: Error + 'static> From<E> for Terminator
[src]
impl<E: Error + 'static> From<E> for Terminator
[src]fn from(err: E) -> Terminator
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Terminator
impl !RefUnwindSafe for Terminator
impl !Send for Terminator
impl !Send for Terminator
impl !Sync for Terminator
impl !Sync for Terminator
impl Unpin for Terminator
impl Unpin for Terminator
impl !UnwindSafe for Terminator
impl !UnwindSafe for Terminator