Struct RawEntryBuilder
pub struct RawEntryBuilder<'a, K, V, S> { /* private fields */ }
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
impl<'a, K, V, S> RawEntryBuilder<'a, K, V, S>
fn from_key<Q>(self, key: &Q) -> Option<(&'a K, &'a V)> where S: BuildHasher, Q: ?Sized + Hash + Equivalent<K>,Access an entry by key.
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.
fn from_hash<F>(self, hash: u64, is_match: F) -> Option<(&'a K, &'a V)> where F: FnMut(&K) -> bool,Access an entry by hash.
fn from_hash_full<F>(self, hash: u64, is_match: F) -> Option<(usize, &'a K, &'a V)> where F: FnMut(&K) -> bool,Access an entry by hash, including its index.
fn index_from_hash<F>(self, hash: u64, is_match: F) -> Option<usize> where F: FnMut(&K) -> bool,Access the index of an entry by hash.
Trait Implementations
impl<K, V, S> Debug for RawEntryBuilder<'_, K, V, S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result