pub trait OptionExt: Option {
    fn or_warn_with<E: Error>(self, error: E, warn: &mut impl Warn<E>) -> Self;
}
Expand description

Integration between Option and Warn

Note that this trait is sealed, so it is implemented for Option<T> and cannot be implemented for anything else.

Required Methods

Yield error error into sink warn if the option contains None. The option is returned unchanged.

Implementations on Foreign Types

Implementors