pub trait OptionExt<T, K>where
K: Kind,{
// Required method
fn exit_with_warning<F>(self, warnings: Set<K>, f: F) -> Verdict<T, K>
where F: FnOnce() -> Warning<K>;
}Expand description
Convert an Option into a Verdict ready to exit the fn.
Required Methods§
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.