Returns true if the cache is empty.
(&self)
| 30 | |
| 31 | /// Returns true if the cache is empty. |
| 32 | pub fn is_empty(&self) -> bool { |
| 33 | self.map.is_empty() |
| 34 | } |
| 35 | |
| 36 | /// Inserts a key-value pair into the cache. |
| 37 | pub fn insert(&mut self, key: Key, value: Value) { |
no outgoing calls