pub(crate) fn insert(&mut self, key: String, count: usize) -> Option<usize> {
        use self::Occurrences::*;
        match self {
            SingleThreaded(map) => map.insert(key, count),
            #[cfg(feature = "multithreaded")]
            MultiThreaded(arc) => arc.insert(key, count),
        }
    }
/// Inserts a key-count pair into the map. If the map did not have this key
/// present, `None` is returned. If the map did have this key present, the
/// value is updated, and the old value is returned.
Inserts a key-count pair into the map. If the map did not have this key
present, `None` is returned. If the map did have this key present, the
value is updated, and the old value is returned.
Inserts a key - count pair into the map . If the map did not have this key present ` None ` is returned . If the map did have this key present the value is updated and the old value is returned .
pub(crate) fn insert(&mut self, key: String, count: usize) -> Option<usize> {
        use self::Occurrences::*;
        match self {
            SingleThreaded(map) => map.insert(key, count),
            #[cfg(feature = "multithreaded")]
            MultiThreaded(arc) => arc.insert(key, count),
        }
    }
pub ( crate ) fn insert ( & mut self , key : String , count : usize ) -> Option < usize > { use self :: Occurrences :: * ; match self { SingleThreaded ( map ) => map . insert ( key , count ) , # [ cfg ( feature " " ) ] MultiThreaded ( arc ) => arc . insert ( key , count ) , } }
Inserts a key-count pair into the map.
Inserts a key - count pair into the map .
&mut self
key
String
count
usize
&mut self
key
String
count
usize