pub struct RawEntryBuilder<'a, K, V, S> { /* private fields */ }
Expand description
A builder for computing where in an IndexMap
a key-value pair would be stored.
This struct
is created by the IndexMap::raw_entry_v1
method, provided by the
RawEntryApiV1
trait. See its documentation for more.
Implementations§
Source§impl<'a, K, V, S> RawEntryBuilder<'a, K, V, S>
impl<'a, K, V, S> RawEntryBuilder<'a, K, V, S>
Sourcepub fn from_key_hashed_nocheck<Q>(
self,
hash: u64,
key: &Q,
) -> Option<(&'a K, &'a V)>where
Q: ?Sized + Equivalent<K>,
pub fn from_key_hashed_nocheck<Q>(
self,
hash: u64,
key: &Q,
) -> Option<(&'a K, &'a V)>where
Q: ?Sized + Equivalent<K>,
Access an entry by a key and its hash.
Sourcepub fn from_hash<F>(self, hash: u64, is_match: F) -> Option<(&'a K, &'a V)>
pub fn from_hash<F>(self, hash: u64, is_match: F) -> Option<(&'a K, &'a V)>
Access an entry by hash.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V, S> Freeze for RawEntryBuilder<'a, K, V, S>
impl<'a, K, V, S> RefUnwindSafe for RawEntryBuilder<'a, K, V, S>
impl<'a, K, V, S> Send for RawEntryBuilder<'a, K, V, S>
impl<'a, K, V, S> Sync for RawEntryBuilder<'a, K, V, S>
impl<'a, K, V, S> Unpin for RawEntryBuilder<'a, K, V, S>
impl<'a, K, V, S> UnwindSafe for RawEntryBuilder<'a, K, V, S>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes