#[repr(C)]pub struct Bucket<K, V> {
pub hash: u64,
pub key: K,
pub value: V,
}Expand description
A single bucket in the hash table.
Fields§
§hash: u640 = empty, 1 = tombstone, >= 2 = occupied (stores masked hash).
key: K§value: VAuto Trait Implementations§
impl<K, V> Freeze for Bucket<K, V>
impl<K, V> RefUnwindSafe for Bucket<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Bucket<K, V>
impl<K, V> Sync for Bucket<K, V>
impl<K, V> Unpin for Bucket<K, V>
impl<K, V> UnsafeUnpin for Bucket<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for Bucket<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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