Wrapper for the value that's returned from the LRUCache when trying to get_or_insert in a single operation. Useful for indicating whether there was a cache hit or a miss.
| 162 | /// trying to get_or_insert in a single operation. Useful for |
| 163 | /// indicating whether there was a cache hit or a miss. |
| 164 | pub enum CachedValue<V> { |
| 165 | Hit(V), |
| 166 | Miss(V), |
| 167 | } |
| 168 | |
| 169 | impl<V> CachedValue<V> { |
| 170 | pub fn inner(self) -> V { |
nothing calls this directly
no outgoing calls
no test coverage detected