/// Maps an Option<Box<T>> to Option<U> by applying a function to a contained value.
///
/// ```rust
/// use galbi::*;
///
/// assert_eq!(OptionBox::some(20).map(|e| (*e)*2), Some(40));
/// ```
Maps an Option> to Option by applying a function to a contained value.


Maps an Option > to Option by applying a function to a contained value .
pub fn map<U, F>(self, f: F) -> Option<U>
    where
        F: FnOnce(Box<T>) -> U,
    {
        self.ptr.map(f)
    }
pub fn map < U , F > ( self , f : F ) -> Option < U > where F : FnOnce ( Box < T > ) -> U , { self . ptr . map ( f ) }
Maps an Option<Box<T>> to Option<U> by applying a function to a contained value.
Maps an Option<Box<T >> to Option<U > by applying a function to a contained value .
self
f
F