pub fn and_modify<F>(self, mut f: F) -> Self
    where
        F: FnMut(&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.
///
/// # Examples
///
/// ```
/// use hash_ord::hash_map::HashMap;
///
/// let mut map: HashMap<&str, u32> = HashMap::new();
///
/// map.entry("poneyland")
///    .and_modify(|e| { *e += 1 })
///    .or_insert(42);
/// assert_eq!(map["poneyland"], 42);
///
/// map.entry("poneyland")
///    .and_modify(|e| { *e += 1 })
///    .or_insert(42);
/// assert_eq!(map["poneyland"], 43);
/// ```
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, mut f: F) -> Self
    where
        F: FnMut(&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 , mut f : F ) -> Self where F : FnMut ( & 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
examples
```
use hash_ord::hash_map::HashMap.

let mut map: HashMap<&str, u32> = HashMap::new().




` ` ` use hash_ord :: hash_map :: HashMap . let mut map : HashMap<&str u32 > = HashMap :: new () .