pub struct Cache<K, V> { /* private fields */ }Implementations§
Source§impl<K, V> Cache<K, V>
impl<K, V> Cache<K, V>
pub fn new(capacity: usize) -> Self
pub fn index_probe(&self, hash: u64, tag: u16) -> Option<usize>
pub fn index_store(&self, hash: u64, tag: u16, entry: u64)
pub fn index_remove(&self, hash: u64, tag: u16, g_idx: usize)
pub fn index_clear_at(&self, idx: usize)
pub fn index_len(&self) -> usize
pub fn node_get_full( &self, idx: usize, key: &K, current_epoch: u32, ) -> Option<V>
pub fn clear(&self)
Trait Implementations§
impl<K: Send, V: Send> Send for Cache<K, V>
impl<K: Send + Sync, V: Send + Sync> Sync for Cache<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Cache<K, V>
impl<K, V> RefUnwindSafe for Cache<K, V>
impl<K, V> Unpin for Cache<K, V>
impl<K, V> UnsafeUnpin for Cache<K, V>
impl<K, V> UnwindSafe for Cache<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more