pub fn and_modify<F>(self, f: F) -> Self
    where
        F: FnOnce(&mut V),
    {
        match self {
            Entry::Occupied(mut entry) => {
                f(entry.get_mut());
                Entry::Occupied(entry)
            }
            Entry::Vacant(entry) => Entry::Vacant(entry),
        }
    }
/// Provides in-place mutable access to an occupied entry before any
/// potential inserts into the map.
Provides in-place mutable access to an occupied entry before any
potential inserts into the map.
Provides in - place mutable access to an occupied entry before any potential inserts into the map .
pub fn and_modify<F>(self, f: F) -> Self
    where
        F: FnOnce(&mut V),
    {
        match self {
            Entry::Occupied(mut entry) => {
                f(entry.get_mut());
                Entry::Occupied(entry)
            }
            Entry::Vacant(entry) => Entry::Vacant(entry),
        }
    }
pub fn and_modify < F > ( self , f : F ) -> Self where F : FnOnce ( & mut V ) , { match self { Entry :: Occupied ( mut entry ) => { f ( entry . get_mut ( ) ) ; Entry :: Occupied ( entry ) } Entry :: Vacant ( entry ) => Entry :: Vacant ( entry ) , } }
Provides in-place mutable access to an occupied entry before any
potential inserts into the map.
Provides in - place mutable access to an occupied entry before any potential inserts into the map .
self
f
F
self
f
F