pub trait VerdictExt<T, K: Kind> {
// Required methods
fn map_caveat<F, U>(self, op: F) -> Verdict<U, K>
where F: FnOnce(T) -> U;
fn keep_cause(self, root: &Element<'_>) -> Result<Caveat<T, K>, Cause<K>>;
}Expand description
Verdict specific extension methods for the Result type.
Required Methods§
Sourcefn map_caveat<F, U>(self, op: F) -> Verdict<U, K>where
F: FnOnce(T) -> U,
fn map_caveat<F, U>(self, op: F) -> Verdict<U, K>where
F: FnOnce(T) -> U,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.