Trait bytecheck::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