pub trait OptionExt {
type Value;
// Required methods
fn ok_or_err<S>(
self,
name: impl Into<String>
) -> Result<Self::Value, Error<S>>
where S: Scope;
fn ok_or_err_else<S, N, F>(
self,
name_factory: F
) -> Result<Self::Value, Error<S>>
where S: Scope,
N: Into<String>,
F: FnOnce() -> N;
}