pub(crate) struct Bucket<K, V> {
pub(crate) hash: HashValue,
pub(crate) key: K,
pub(crate) value: V,
}
Fields§
§hash: HashValue
§key: K
§value: V
Implementations§
source§impl<K, V> Bucket<K, V>
impl<K, V> Bucket<K, V>
pub(crate) fn key_ref(&self) -> &K
pub(crate) fn value_ref(&self) -> &V
pub(crate) fn value_mut(&mut self) -> &mut V
pub(crate) fn key(self) -> K
pub(crate) fn value(self) -> V
pub(crate) fn key_value(self) -> (K, V)
pub(crate) fn refs(&self) -> (&K, &V)
pub(crate) fn ref_mut(&mut self) -> (&K, &mut V)
pub(crate) fn muts(&mut self) -> (&mut K, &mut V)
Trait Implementations§
impl<K: Copy, V: Copy> Copy for Bucket<K, V>
Auto 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> 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