[−][src]Struct rkyv::std_impl::hashbrown::ArchivedHashMap
An archived HashMap
. This is a direct port of the standard library
hashbrown
hash map for rkyv.
Implementations
impl<K: Hash + Eq, V> ArchivedHashMap<K, V>
[src]
pub fn len(&self) -> usize
[src]
Gets the number of items in the hash map.
pub fn get_key_value<Q: ?Sized>(&self, k: &Q) -> Option<(&K, &V)> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Finds the key-value pair for a key.
pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Returns whether a key is present in the hash map.
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Gets the value associated with the given key.
pub fn get_pin<Q: ?Sized>(self: Pin<&mut Self>, k: &Q) -> Option<Pin<&mut V>> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Get the mutable value associated with the given key.
pub fn hasher(&self) -> SeaHasher
[src]
Gets the hasher for the hash map.
pub fn is_empty(&self) -> bool
[src]
Returns whether there are no items in the hash map.
pub fn iter(&self) -> Iter<'_, K, V>ⓘ
[src]
Gets an iterator over the key-value pairs in the hash map.
pub fn iter_pin(self: Pin<&mut Self>) -> IterPin<'_, K, V>ⓘ
[src]
Gets an iterator over the mutable key-value pairs in the hash map.
pub fn keys(&self) -> Keys<'_, K, V>ⓘ
[src]
Gets an iterator over the keys in the hash map.
pub fn values(&self) -> Values<'_, K, V>ⓘ
[src]
Gets an iterator over the values in the hash map.
pub fn values_pin(self: Pin<&mut Self>) -> ValuesPin<'_, K, V>ⓘ
[src]
Gets an iterator over the mutable values in the hash map.
Trait Implementations
impl<K: CheckBytes<ArchiveContext> + Eq + Hash, V: CheckBytes<ArchiveContext>> CheckBytes<ArchiveContext> for ArchivedHashMap<K, V>
[src]
type Error = ArchivedHashMapError<K::Error, V::Error>
The error that may result from validating the type.
pub unsafe fn check_bytes<'a>(
bytes: *const u8,
context: &mut ArchiveContext
) -> Result<&'a Self, Self::Error>
[src]
bytes: *const u8,
context: &mut ArchiveContext
) -> Result<&'a Self, Self::Error>
impl<K: Debug, V: Debug> Debug for ArchivedHashMap<K, V>
[src]
impl<K: Hash + Eq, V: Eq> Eq for ArchivedHashMap<K, V>
[src]
impl<K: Eq + Hash + Borrow<Q>, Q: Eq + Hash + ?Sized, V, '_> Index<&'_ Q> for ArchivedHashMap<K, V>
[src]
impl<K: Hash + Eq + Borrow<AK>, V, AK: Hash + Eq, AV: PartialEq<V>> PartialEq<ArchivedHashMap<AK, AV>> for HashMap<K, V>
[src]
pub fn eq(&self, other: &ArchivedHashMap<AK, AV>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<K: Hash + Eq, V: PartialEq> PartialEq<ArchivedHashMap<K, V>> for ArchivedHashMap<K, V>
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<K: Hash + Eq + Borrow<AK>, V, AK: Hash + Eq, AV: PartialEq<V>> PartialEq<HashMap<K, V, RandomState>> for ArchivedHashMap<AK, AV>
[src]
Auto Trait Implementations
impl<K, V> RefUnwindSafe for ArchivedHashMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for ArchivedHashMap<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for ArchivedHashMap<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> !Unpin for ArchivedHashMap<K, V>
impl<K, V> UnwindSafe for ArchivedHashMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,