/// Modifies the entry if it is occupied.
Modifies the entry if it is occupied.
Modifies the entry if it is occupied .
pub fn and_modify<F>(self, f: F) -> Self
    where
        F: FnOnce(&mut V),
    {
        match self {
            Entry::Occupied(mut o) => {
                f(o.get_mut());
                Entry::Occupied(o)
            }
            x => x,
        }
    }
pub fn and_modify < F > ( self , f : F ) -> Self where F : FnOnce ( & mut V ) , { match self { Entry :: Occupied ( mut o ) => { f ( o . get_mut ( ) ) ; Entry :: Occupied ( o ) } x => x , } }
Modifies the entry if it is occupied.
Modifies the entry if it is occupied .
self
f
F