/// Checks if the map contains the given key.
///
/// # Examples
///
/// ```
/// use lru_size_cache::LruSizeCache;
///
/// let mut cache = LruSizeCache::new(1);
///
/// cache.insert(1, "a");
/// assert_eq!(cache.contains_key(&1), true);
/// ```
Checks if the map contains the given key.
Checks if the map contains the given key .
pub fn contains_key<Q: ?Sized>(&mut self, key: &Q) -> bool
        where K: Borrow<Q>,
              Q: Hash + Eq
    {
        self.get(key).is_some()
    }
pub fn contains_key < Q : ? Sized > ( & mut self , key : & Q ) -> bool where K : Borrow < Q > , Q : Hash + Eq { self . get ( key ) . is_some ( ) }
Checks if the map contains the given key.
Checks if the map contains the given key .
&mut self
key
&Q
examples
```
use lru_size_cache::LruSizeCache.

let mut cache = LruSizeCache::new(1).


` ` ` use lru_size_cache :: LruSizeCache . let mut cache = LruSizeCache :: new ( 1 ) .