Trait VerdictExt

Source
pub trait VerdictExt<T, K: Kind> {
    // Required method
    fn ok_caveat(self) -> Caveat<Option<T>, K>;
}
Expand description

Verdict specific extinsion methods for the Result type.

Required Methods§

Source

fn ok_caveat(self) -> Caveat<Option<T>, K>

Converts from Verdict<T, K> to Caveat<Option<T>, K>.

The Ok and Err variants are encoded as Some(T) and None respectively and the Warnings are retained.

Implementors§

Source§

impl<T, K: Kind> VerdictExt<T, K> for Verdict<T, K>
where T: IntoCaveat,