bytecheck

Trait Error

Source
pub trait Error: Error + 'static {
    // Required method
    fn as_error(&self) -> &(dyn Error + 'static);
}
Expand description

An error that can be debugged and displayed.

With the std feature, this also supports std::error::Error.

Required Methods§

Source

fn as_error(&self) -> &(dyn Error + 'static)

Gets this error as an std::error::Error.

Implementors§

Source§

impl<T: Error + 'static> Error for T