Skip to main content

LibErrorContext

Trait LibErrorContext 

Source
pub trait LibErrorContext {
    // Required method
    fn context<S: Into<String>>(self, f: impl Fn() -> S) -> Self;
}

Required Methods§

Source

fn context<S: Into<String>>(self, f: impl Fn() -> S) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> LibErrorContext for Result<T, LibError>

Source§

fn context<S: Into<String>>(self, f: impl Fn() -> S) -> Self

Implementors§