[][src]Trait arithmetic_parser::StripResultExt

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

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.

Loading content...

Required methods

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

Strips code fragments from the error variant.

Loading content...

Implementations on Foreign Types

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

type Ok = T

type StrippedErr = E::Stripped

Loading content...

Implementors

Loading content...