[][src]Trait snafu::ErrorCompat

pub trait ErrorCompat {
    fn backtrace(&self) -> Option<&Backtrace> { ... }
}

Backports changes to the Error trait to versions of Rust lacking them.

It is recommended to always call these methods explicitly so that it is easy to replace usages of this trait when you start supporting a newer version of Rust.

ErrorCompat::backtrace(&error); // Recommended
error.backtrace();              // Discouraged

Provided methods

fn backtrace(&self) -> Option<&Backtrace>

Returns a Backtrace that may be printed.

Loading content...

Implementations on Foreign Types

impl<'a, E> ErrorCompat for &'a E where
    E: ErrorCompat
[src]

impl<E> ErrorCompat for Box<E> where
    E: ErrorCompat
[src]

Loading content...

Implementors

impl ErrorCompat for ConfigFileError[src]

impl ErrorCompat for snafu::guide::examples::backtrace::Error[src]

impl ErrorCompat for snafu::guide::examples::basic::Error[src]

Loading content...