Removes a key from the cache and returns the value at the key if it exists.
(&mut self, key: &Key)
| 56 | |
| 57 | /// Removes a key from the cache and returns the value at the key if it exists. |
| 58 | pub fn remove(&mut self, key: &Key) -> Option<Value> { |
| 59 | self.map.remove(key) |
| 60 | } |
| 61 | |
| 62 | /// Contains the key. |
| 63 | pub fn contains_key(&self, key: &Key) -> bool { |
no outgoing calls