pub type Verdict<T, W> = Result<Caveat<T, W>, ErrorSet<W>>;Expand description
Aliased Type§
pub enum Verdict<T, W> {
Ok(Caveat<T, W>),
Err(ErrorSet<W>),
}Variants§
Trait Implementations§
Source§impl<T, W> GatherWarnings<T, W> for Verdict<T, W>where
W: Warning,
Convert a Result<Caveat<T>> into Result<T> by gathering up its Warnings.
impl<T, W> GatherWarnings<T, W> for Verdict<T, W>where
W: Warning,
Convert a Result<Caveat<T>> into Result<T> by gathering up its Warnings.
Source§fn gather_warnings_into<WA>(self, warnings: &mut Set<WA>) -> Self::Output
fn gather_warnings_into<WA>(self, warnings: &mut Set<WA>) -> Self::Output
Convert a Verdict into an Option by collecting Warnings from the Ok and Err variants
and mapping Ok to Some and Err to None.