[][src]Struct easy_error::Terminator

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 Debug for Terminator[src]

impl<E: Error + 'static> From<E> for Terminator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.