pub fn unwrap_or_else<F, H, E>(or_else: F, optional: Option<H>) -> Result<H, E> where
	F: FnOnce() -> Result<H, E>,
{
	match optional.into() {
		None => or_else(),
		Some(x) => Ok(x),
	}
}
/// Unwraps the trailing parameter or falls back with the closure result.
Unwraps the trailing parameter or falls back with the closure result.
Unwraps the trailing parameter or falls back with the closure result .
pub fn unwrap_or_else<F, H, E>(or_else: F, optional: Option<H>) -> Result<H, E> where
	F: FnOnce() -> Result<H, E>,
{
	match optional.into() {
		None => or_else(),
		Some(x) => Ok(x),
	}
}
pub fn unwrap_or_else < F , H , E > ( or_else : F , optional : Option < H > ) -> Result < H , E > where F : FnOnce ( ) -> Result < H , E > , { match optional . into ( ) { None => or_else ( ) , Some ( x ) => Ok ( x ) , } }
Unwraps the trailing parameter or falls back with the closure result.
Unwraps the trailing parameter or falls back with the closure result .
or_else
F
optional
Option<H>
or_else
F
optional
Option<H>