Struct clockpro_cache::ClockProCache
[−]
[src]
pub struct ClockProCache<K, V> {
// some fields omitted
}pub struct ClockProCache<K, V> {
// some fields omitted
}impl<K, V> ClockProCache<K, V> where K: Eq + Hash[src]fn new(capacity: usize) -> Result<Self, &'static str>fn new_with_test_capacity(capacity: usize, test_capacity: usize) -> Result<Self, &'static str>fn len(&self) -> usizefn recent_len(&self) -> usizefn frequent_len(&self) -> usizefn test_len(&self) -> usizefn inserted(&self) -> u64fn evicted(&self) -> u64fn get_mut<Q: ?Sized>(&mut self, key: &Q) -> Option<&mut V> where Q: Hash + Eq, K: Borrow<Q>fn get<Q: ?Sized>(&mut self, key: &Q) -> Option<&V> where Q: Hash + Eq, K: Borrow<Q>fn contains_key<Q: ?Sized>(&mut self, key: &Q) -> bool where Q: Hash + Eq, K: Borrow<Q>fn insert(&mut self, key: K, value: V) -> boolimpl<K, V> Send for ClockProCache<K, V> where K: Send, V: Send[src]