()
| 105 | |
| 106 | impl<K: Clone + Eq + Hash> LRUTracker<K> { |
| 107 | fn new() -> Self { |
| 108 | Self { |
| 109 | order: VecDeque::new(), |
| 110 | positions: HashMap::new(), |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | fn access(&mut self, key: &K) { |
| 115 | if let Some(&pos) = self.positions.get(key) { |
nothing calls this directly
no outgoing calls
no test coverage detected