Struct cart_cache::CartCache
[−]
[src]
pub struct CartCache<K, V> where K: Eq + Hash {
// some fields omitted
}
pub struct CartCache<K, V> where K: Eq + Hash {
// some fields omitted
}
impl<K: Eq + Hash, V> CartCache<K, V>
[src]fn new(capacity: usize) -> Result<CartCache<K, V>, &'static str>
fn capacity(&self) -> usize
fn len(&self) -> usize
fn frequent_len(&self) -> usize
fn recent_len(&self) -> usize
fn inserted(&self) -> u64
fn evicted(&self) -> u64
fn clear(&mut self)
fn contains_key<Q: ?Sized>(&self, key: &Q) -> bool 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 get_mut<Q: ?Sized>(&mut self, key: &Q) -> Option<&mut V> where Q: Hash + Eq, K: Borrow<Q>
fn insert(&mut self, key: K, value: V) -> bool where K: Hash + Eq + Clone