Trait arithmetic_parser::StripResultExt[][src]

pub trait StripResultExt {
    type Ok;
    type StrippedErr: 'static;
    fn strip_err(self) -> Result<Self::Ok, Self::StrippedErr>;
}
Expand description

Helper trait for Results with the error component that implements StripCode.

Associated Types

type Ok[src]

Type wrapped by the Result::Ok variant.

type StrippedErr: 'static[src]

Result of stripping code fragments from an error.

Required methods

fn strip_err(self) -> Result<Self::Ok, Self::StrippedErr>[src]

Strips code fragments from the error variant.

Implementations on Foreign Types

impl<T, E: StripCode> StripResultExt for Result<T, E>[src]

type Ok = T

type StrippedErr = E::Stripped

fn strip_err(self) -> Result<T, Self::StrippedErr>[src]

Implementors