pub fn unwrap_or_else<F>(self, f: F) -> Box<T>
    where
        F: FnOnce() -> Box<T>,
    {
        self.ptr.unwrap_or_else(f)
    }
/// Returns the contained Some value or computes it from a closure.
///
/// ```rust
/// use galbi::*;
///
/// assert_eq!(OptionBox::some(12).unwrap_or_else(|| Box::new(13)), Box::new(12));
/// assert_eq!(OptionBox::none().unwrap_or_else(|| Box::new(13)), Box::new(13));
/// ```
Returns the contained Some value or computes it from a closure.


Returns the contained Some value or computes it from a closure .
pub fn unwrap_or_else<F>(self, f: F) -> Box<T>
    where
        F: FnOnce() -> Box<T>,
    {
        self.ptr.unwrap_or_else(f)
    }
pub fn unwrap_or_else < F > ( self , f : F ) -> Box < T > where F : FnOnce ( ) -> Box < T > , { self . ptr . unwrap_or_else ( f ) }
Returns the contained Some value or computes it from a closure.
Returns the contained Some value or computes it from a closure .
self
f
F
self
f
F