Returns a reference to the value at the key if it exists.
(&self, key: &Key)
| 51 | |
| 52 | /// Returns a reference to the value at the key if it exists. |
| 53 | pub fn get(&self, key: &Key) -> Option<&Value> { |
| 54 | self.map.get(key) |
| 55 | } |
| 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> { |
no outgoing calls