Trait StripResultExt

Source
pub trait StripResultExt {
    type Ok;
    type StrippedErr: 'static;

    // Required method
    fn strip_err(self) -> Result<Self::Ok, Self::StrippedErr>;
}
Expand description

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

Required Associated Types§

Source

type Ok

Type wrapped by the Result::Ok variant.

Source

type StrippedErr: 'static

Result of stripping code fragments from an error.

Required Methods§

Source

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

Strips code fragments from the error variant.

Implementations on Foreign Types§

Source§

impl<T, E: StripCode> StripResultExt for Result<T, E>

Implementors§