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
sourceimpl<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 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> RefUnwindSafe for Bucket<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Bucket<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for Bucket<K, V> where
K: Sync,
V: Sync,
impl<K, V> Unpin for Bucket<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Bucket<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more