Type Alias Verdict
Source pub type Verdict<T, W> = Result<Caveat<T, W>, ErrorSet<W>>;
Expand description
A Verdict is a standard Result with Warnings potentially issued for both the Ok and Err variants.
pub enum Verdict<T, W> {
Ok(Caveat<T, W>),
Err(ErrorSet<W>),
}
Contains the success value
Maps a
Verdict<T, E> to
Verdict<U, E> by applying a function to a
contained
Ok value, leaving an
Err value untouched.
Discard all warnings in the Err variant and keep only the warning that caused the error.