Struct hashbrown::hash_map::RawEntryBuilderMut
source · [−]pub struct RawEntryBuilderMut<'a, K, V, S, A: Allocator + Clone = Global> { /* private fields */ }
Expand description
A builder for computing where in a HashMap
a key-value pair would be stored.
See the HashMap::raw_entry_mut
docs for usage examples.
Implementations
sourceimpl<'a, K, V, S, A: Allocator + Clone> RawEntryBuilderMut<'a, K, V, S, A>
impl<'a, K, V, S, A: Allocator + Clone> RawEntryBuilderMut<'a, K, V, S, A>
sourcepub fn from_key<Q: ?Sized>(self, k: &Q) -> RawEntryMut<'a, K, V, S, A> where
S: BuildHasher,
K: Borrow<Q>,
Q: Hash + Eq,
pub fn from_key<Q: ?Sized>(self, k: &Q) -> RawEntryMut<'a, K, V, S, A> where
S: BuildHasher,
K: Borrow<Q>,
Q: Hash + Eq,
Creates a RawEntryMut
from the given key.
sourcepub fn from_key_hashed_nocheck<Q: ?Sized>(
self,
hash: u64,
k: &Q
) -> RawEntryMut<'a, K, V, S, A> where
K: Borrow<Q>,
Q: Eq,
pub fn from_key_hashed_nocheck<Q: ?Sized>(
self,
hash: u64,
k: &Q
) -> RawEntryMut<'a, K, V, S, A> where
K: Borrow<Q>,
Q: Eq,
Creates a RawEntryMut
from the given key and its hash.
sourceimpl<'a, K, V, S, A: Allocator + Clone> RawEntryBuilderMut<'a, K, V, S, A>
impl<'a, K, V, S, A: Allocator + Clone> RawEntryBuilderMut<'a, K, V, S, A>
Trait Implementations
Auto Trait Implementations
impl<'a, K, V, S, A> RefUnwindSafe for RawEntryBuilderMut<'a, K, V, S, A> where
A: RefUnwindSafe,
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V, S, A> Send for RawEntryBuilderMut<'a, K, V, S, A> where
A: Send,
K: Send,
S: Send,
V: Send,
impl<'a, K, V, S, A> Sync for RawEntryBuilderMut<'a, K, V, S, A> where
A: Sync,
K: Sync,
S: Sync,
V: Sync,
impl<'a, K, V, S, A> Unpin for RawEntryBuilderMut<'a, K, V, S, A>
impl<'a, K, V, S, A = Global> !UnwindSafe for RawEntryBuilderMut<'a, K, V, S, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more