Skip to main content

StripResultExt

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Implementors§