n0_error

Trait StackErrorExt

Source
pub trait StackErrorExt:
    StackError
    + Sized
    + 'static {
    // Provided methods
    fn into_any(self) -> AnyError { ... }
    fn context(self, context: impl Display) -> AnyError { ... }
}
Expand description

Extension methods for StackErrors that are Sized.

Provided Methods§

Source

fn into_any(self) -> AnyError

Converts the error into AnyError.

This preserves the error’s location metadata.

Source

fn context(self, context: impl Display) -> AnyError

Converts the error into AnyError, and adds additional error context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: StackError + Sized + 'static> StackErrorExt for T