Struct halfbrown::RawEntryBuilder
source · pub struct RawEntryBuilder<'map, K, V, const N: usize, S>(_);Expand description
A builder for computing where in a [HashMap] a key-value pair would be stored.
See the HashMap::raw_entry docs for usage examples.
Implementations§
source§impl<'map, K, V, const N: usize, S> RawEntryBuilder<'map, K, V, N, S>where
S: BuildHasher,
impl<'map, K, V, const N: usize, S> RawEntryBuilder<'map, K, V, N, S>where S: BuildHasher,
sourcepub fn from_key<Q>(self, k: &Q) -> Option<(&'map K, &'map V)>where
K: Borrow<Q>,
Q: Hash + Eq + ?Sized,
pub fn from_key<Q>(self, k: &Q) -> Option<(&'map K, &'map V)>where K: Borrow<Q>, Q: Hash + Eq + ?Sized,
Access an entry by key.
Trait Implementations§
source§impl<K, V, const N: usize, S> Debug for RawEntryBuilder<'_, K, V, N, S>
impl<K, V, const N: usize, S> Debug for RawEntryBuilder<'_, K, V, N, S>
source§impl<'map, K, V, const N: usize, S> From<RawEntryBuilder<'map, K, V, S, Global>> for RawEntryBuilder<'map, K, V, N, S>
impl<'map, K, V, const N: usize, S> From<RawEntryBuilder<'map, K, V, S, Global>> for RawEntryBuilder<'map, K, V, N, S>
source§fn from(m: RawEntryBuilder<'map, K, V, S>) -> Self
fn from(m: RawEntryBuilder<'map, K, V, S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'map, K, V, const N: usize, S> RefUnwindSafe for RawEntryBuilder<'map, K, V, N, S>where K: RefUnwindSafe, S: RefUnwindSafe, V: RefUnwindSafe,
impl<'map, K, V, const N: usize, S> Send for RawEntryBuilder<'map, K, V, N, S>where K: Sync, S: Sync, V: Sync,
impl<'map, K, V, const N: usize, S> Sync for RawEntryBuilder<'map, K, V, N, S>where K: Sync, S: Sync, V: Sync,
impl<'map, K, V, const N: usize, S> Unpin for RawEntryBuilder<'map, K, V, N, S>
impl<'map, K, V, const N: usize, S> UnwindSafe for RawEntryBuilder<'map, K, V, N, S>where K: RefUnwindSafe, S: 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