Trait overflow_error::ErrorWith [] [src]

pub trait ErrorWith<Val: ?Sized> {
    type Without: Fail;
    fn as_error(&self) -> Self::Without;
fn as_value(&self) -> &Val;
fn into_value(self) -> Val
    where
        Self: Sized,
        Val: Sized
; fn into_error(self) -> Self::Without
    where
        Self: Sized,
        Val: Sized
, { ... }
fn map<F, Ret>(self, f: F) -> <Self::Without as ErrorBase<Ret>>::With
    where
        Self: Sized,
        Val: Sized,
        F: Fn(Val) -> Ret,
        Self::Without: ErrorBase<Ret>,
        <Self::Without as ErrorBase<Ret>>::With: Sized
, { ... } }

The failure of a particular operation, with the given operand(s).

Can be attached with a value of type Val, if Val is sized.

Associated Types

This error, without the attached value.

Required Methods

Gets the underlying error.

References the attached value.

Consumes this error and returns the attached value.

Provided Methods

Discards the attached value and returns the underlying error.

Maps a function over the attached value.

Implementors