pub fn if_some<T, F>(self, value: &Option<T>, f: F) -> Self
    where
        F: Fn(Self, &T) -> Self,
    {
        if let Some(ref val) = value {
            self.0.size.set(0);
            f(self, val)
        } else {
            self
        }
    }
/// Call closure if value is Some value
Call closure if value is Some value
Call closure if value is Some value
pub fn if_some<T, F>(self, value: &Option<T>, f: F) -> Self
    where
        F: Fn(Self, &T) -> Self,
    {
        if let Some(ref val) = value {
            self.0.size.set(0);
            f(self, val)
        } else {
            self
        }
    }
pub fn if_some < T , F > ( self , value : & Option < T > , f : F ) -> Self where F : Fn ( Self , & T ) -> Self , { if let Some ( ref val ) = value { self . 0 . size . set ( 0 ) ; f ( self , val ) } else { self } }
Call closure if value is Some value
Call closure if value is Some value
self
value
&Option<T>
f
F
self
value
&Option<T>
f
F