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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more