pub trait OptionExt: Option {
fn or_warn_with<E: Error>(self, error: E, warn: &mut impl Warn<E>) -> Self;
}
Expand description
Required Methods
sourcefn or_warn_with<E: Error>(self, error: E, warn: &mut impl Warn<E>) -> Self
fn or_warn_with<E: Error>(self, error: E, warn: &mut impl Warn<E>) -> Self
Yield error error
into sink warn
if the option contains None
. The option
is returned unchanged.