pub trait VerdictExt<T, K: Kind> { // Required method fn ok_caveat(self) -> Caveat<Option<T>, K>; }
Verdict specific extinsion methods for the Result type.
Verdict
Result
Converts from Verdict<T, K> to Caveat<Option<T>, K>.
Verdict<T, K>
Caveat<Option<T>, K>
The Ok and Err variants are encoded as Some(T) and None respectively and the Warnings are retained.
Ok
Err
Some(T)
None
Warning