pub fn contains_key<Q: ?Sized>(&self, q: &Q) -> bool
    where
        K: Borrow<Q>,
        Q: Hash + Ord,
    {
        !self.find(q).is_null()
    }
/// Returns true if the map contains a value for the specified key.
///
/// The key may be any borrowed form of the map's key type, but
/// `Hash` and `Ord` on the borrowed form *must* match those for
/// the key type.
///
/// # Examples
///
/// ```
/// use hash_ord::hash_map::HashMap;
///
/// let mut map = HashMap::new();
/// map.insert(1, "a");
/// assert_eq!(map.contains_key(&1), true);
/// assert_eq!(map.contains_key(&2), false);
/// ```
Returns true if the map contains a value for the specified key.
The key may be any borrowed form of the map's key type, but
`Hash` and `Ord` on the borrowed form *must* match those for
the key type.
Returns true if the map contains a value for the specified key . The key may be any borrowed form of the map ' s key type but ` Hash ` and ` Ord ` on the borrowed form * must * match those for the key type .
pub fn contains_key<Q: ?Sized>(&self, q: &Q) -> bool
    where
        K: Borrow<Q>,
        Q: Hash + Ord,
    {
        !self.find(q).is_null()
    }
pub fn contains_key < Q : ? Sized > ( & self , q : & Q ) -> bool where K : Borrow < Q > , Q : Hash + Ord , { ! self . find ( q ) . is_null ( ) }
Returns true if the map contains a value for the specified key.
Returns true if the map contains a value for the specified key .
&self
q
&Q
examples
```
use hash_ord::hash_map::HashMap.

let mut map = HashMap::new();
map.insert(1, "a");
assert_eq!(map.contains_key(&1), true);
assert_eq!(map.contains_key(&2), false);
```
` ` ` use hash_ord :: hash_map :: HashMap . let mut map = HashMap :: new () ; map . insert ( 1 " a " ) ; assert_eq! ( map . contains_key ( &1 ) true ) ; assert_eq! ( map . contains_key ( &2 ) false ) ; ` ` `