Trait bytecheck::Error

source ·
pub trait Error: Error + 'static + Send + Sync {
    // Required method
    fn as_error(&self) -> &(dyn Error + Send + Sync + '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 + Send + Sync + 'static)

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

Implementors§

source§

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