ErrorWith

Trait ErrorWith 

Source
pub trait ErrorWith {
    // Required methods
    fn want<S: Into<String>>(self, desc: S) -> Self;
    fn position<S: Into<String>>(self, desc: S) -> Self;
    fn with<C: Into<OperationContext>>(self, ctx: C) -> Self;
}

Required Methods§

Source

fn want<S: Into<String>>(self, desc: S) -> Self

Source

fn position<S: Into<String>>(self, desc: S) -> Self

Source

fn with<C: Into<OperationContext>>(self, ctx: C) -> Self

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.

Implementations on Foreign Types§

Source§

impl<T, E: ErrorWith> ErrorWith for Result<T, E>

Source§

fn want<S: Into<String>>(self, desc: S) -> Self

Source§

fn position<S: Into<String>>(self, desc: S) -> Self

Source§

fn with<C: Into<OperationContext>>(self, ctx: C) -> Self

Implementors§