Trait zachs18_stdx::ResultExt
source · pub trait ResultExt: Sized + Sealed {
type T;
type E;
// Required methods
fn is_err_or(self, f: impl FnOnce(Self::T) -> bool) -> bool;
fn is_ok_or(self, f: impl FnOnce(Self::E) -> bool) -> bool;
fn contains<U>(&self, u: &U) -> bool
where Self::T: PartialEq<U>;
fn contains_err<U>(&self, u: &U) -> bool
where Self::E: PartialEq<U>;
}Required Associated Types§
Required Methods§
fn is_err_or(self, f: impl FnOnce(Self::T) -> bool) -> bool
fn is_ok_or(self, f: impl FnOnce(Self::E) -> bool) -> bool
fn contains<U>(&self, u: &U) -> boolwhere Self::T: PartialEq<U>,
fn contains_err<U>(&self, u: &U) -> boolwhere Self::E: PartialEq<U>,
Object Safety§
This trait is not object safe.