Skip to main content

OptionExt

Trait OptionExt 

Source
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§

Source

fn exit_with_warning<F>(self, warnings: Set<K>, f: F) -> Verdict<T, K>
where F: FnOnce() -> Warning<K>,

Convert an Option into a Verdict ready to exit the fn.

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.

Implementations on Foreign Types§

Source§

impl<T, K> OptionExt<T, K> for Option<T>
where T: IntoCaveat, K: Kind,

Source§

fn exit_with_warning<F>(self, warnings: Set<K>, f: F) -> Verdict<T, K>
where F: FnOnce() -> Warning<K>,

Implementors§