Lines Matching refs:LruCache
56 pub struct LruCache<K: Eq + Hash, V, S: BuildHasher = RandomState> { struct
61 impl<K: Eq + Hash, V> LruCache<K, V> { implementation
71 LruCache { in new()
78 impl<K: Eq + Hash, V, S: BuildHasher> LruCache<K, V, S> { implementation
81 LruCache { map: LinkedHashMap::with_hasher(hash_builder), max_size: capacity } in with_hasher()
307 impl<K: Eq + Hash, V, S: BuildHasher> Extend<(K, V)> for LruCache<K, V, S> { implementation
315 impl<K: fmt::Debug + Eq + Hash, V: fmt::Debug, S: BuildHasher> fmt::Debug for LruCache<K, V, S> { implementation
321 impl<K: Eq + Hash, V, S: BuildHasher> IntoIterator for LruCache<K, V, S> { implementation
330 impl<'a, K: Eq + Hash, V, S: BuildHasher> IntoIterator for &'a LruCache<K, V, S> { implementation
336 impl<'a, K: Eq + Hash, V, S: BuildHasher> IntoIterator for &'a mut LruCache<K, V, S> { implementation
437 use super::LruCache;
441 let mut cache = LruCache::new(2); in test_put_and_get()
451 let mut cache = LruCache::new(1); in test_put_update()
460 let mut cache = LruCache::new(1); in test_contains_key()
467 let mut cache = LruCache::new(2); in test_expire_lru()
479 let mut cache = LruCache::new(2); in test_pop()
492 let mut cache = LruCache::new(2); in test_change_capacity()
503 let mut cache = LruCache::new(3); in test_debug()
520 let mut cache = LruCache::new(3); in test_remove()
541 let mut cache = LruCache::new(2); in test_clear()
552 let mut cache = LruCache::new(3); in test_iter()