/// Returns the option if it contains a value, otherwise calls f and returns the result.
///
/// ```rust
/// use galbi::*;
///
/// let x: OptionBox<i32> = OptionBox::none();
/// assert_eq!(x.or_else(|| Some(Box::new(1234))), Some(Box::new(1234)))
/// ```
Returns the option if it contains a value, otherwise calls f and returns the result.


Returns the option if it contains a value otherwise calls f and returns the result .
pub fn or_else<F>(self, f: F) -> Option<Box<T>>
    where
        F: FnOnce() -> Option<Box<T>>,
    {
        self.ptr.or_else(f)
    }
pub fn or_else < F > ( self , f : F ) -> Option < Box < T > > where F : FnOnce ( ) -> Option < Box < T > > , { self . ptr . or_else ( f ) }
Returns the option if it contains a value, otherwise calls f and returns the result.
Returns the option if it contains a value otherwise calls f and returns the result .
self
f
F