pub fn entry(&mut self, key: K) -> Entry<K, V> {
        let (duplicate, parent, link) = unsafe { self.find_duplicate(&key) };
        if duplicate.is_null() {
            return Entry::Vacant(VacantEntry {
                key,
                parent,
                link,
                ord_map_mut: self,
            });
        } else {
            return Entry::Occupied(OccupiedEntry {
                key: Some(key),
                node: duplicate,
                ord_map_mut: self,
            });
        };
    }
/// Gets the given key's corresponding entry in the map for in-place manipulation.
///
/// # Examples
///
/// ```
/// use hash_ord::ord_map::OrdMap;
///
/// let mut letters = OrdMap::new();
///
/// for ch in "a short treatise on fungi".chars() {
///     let counter = letters.entry(ch).or_insert(0);
///     *counter += 1;
/// }
///
/// assert_eq!(letters[&'s'], 2);
/// assert_eq!(letters[&'t'], 3);
/// assert_eq!(letters[&'u'], 1);
/// assert_eq!(letters.get(&'y'), None);
/// ```
Gets the given key's corresponding entry in the map for in-place manipulation.
Gets the given key ' s corresponding entry in the map for in - place manipulation .
pub fn entry(&mut self, key: K) -> Entry<K, V> {
        let (duplicate, parent, link) = unsafe { self.find_duplicate(&key) };
        if duplicate.is_null() {
            return Entry::Vacant(VacantEntry {
                key,
                parent,
                link,
                ord_map_mut: self,
            });
        } else {
            return Entry::Occupied(OccupiedEntry {
                key: Some(key),
                node: duplicate,
                ord_map_mut: self,
            });
        };
    }
pub fn entry ( & mut self , key : K ) -> Entry < K , V > { let ( duplicate , parent , link ) = unsafe { self . find_duplicate ( & key ) } ; if duplicate . is_null ( ) { return Entry :: Vacant ( VacantEntry { key , parent , link , ord_map_mut : self , } ) ; } else { return Entry :: Occupied ( OccupiedEntry { key : Some ( key ) , node : duplicate , ord_map_mut : self , } ) ; } ; }
Gets the given key's corresponding entry in the map for in-place manipulation.
Gets the given key ' s corresponding entry in the map for in - place manipulation .
&mut self
key
K
examples
```
use hash_ord::ord_map::OrdMap.

let mut letters = OrdMap::new().

for ch in "a short treatise on fungi".chars() {
let counter = letters.entry(ch).or_insert(0);
counter += 1;
}


` ` ` use hash_ord :: ord_map :: OrdMap . let mut letters = OrdMap :: new () . for ch in " a short treatise on fungi " . chars () { let counter = letters . entry ( ch ) . or_insert ( 0 ) ; counter + = 1 ; }