pub struct T2<K, V> { /* private fields */ }Implementations§
Source§impl<K, V> T2<K, V>
impl<K, V> T2<K, V>
pub fn new(slots_count: usize) -> Self
pub fn load_slot(&self, hash: u64) -> *mut Node<K, V>
pub fn store_slot(&self, hash: u64, ptr: *mut Node<K, V>)
pub fn clear_if_matches(&self, hash: u64, expected_ptr: *mut Node<K, V>)
pub fn clear_at(&self, idx: usize)
pub fn len(&self) -> usize
Trait Implementations§
impl<K: Send, V: Send> Send for T2<K, V>
impl<K: Send + Sync, V: Send + Sync> Sync for T2<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for T2<K, V>
impl<K, V> RefUnwindSafe for T2<K, V>
impl<K, V> Unpin for T2<K, V>
impl<K, V> UnsafeUnpin for T2<K, V>
impl<K, V> UnwindSafe for T2<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