Struct rkyv::std_impl::chd::ArchivedHashMap [−][src]
pub struct ArchivedHashMap<K, V> { /* fields omitted */ }
An archived HashMap
.
Implementations
impl<K: Hash + Eq, V> ArchivedHashMap<K, V>
[src]
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 hasher(&self) -> SeaHasher
[src]
Gets the hasher for this hashmap. The hasher for all archived hashmaps is the same for reproducibility.
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 entry for a key.
pub fn get_key_value_pin<Q: ?Sized>(
self: Pin<&mut Self>,
k: &Q
) -> Option<(&K, Pin<&mut V>)> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
self: Pin<&mut Self>,
k: &Q
) -> Option<(&K, Pin<&mut V>)> where
K: Borrow<Q>,
Q: Hash + Eq,
Finds the mutable key-value entry 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,
Gets the mutable value associated with the given key.
pub fn is_empty(&self) -> bool
[src]
Returns whether there are no items in the hashmap.
pub fn iter(&self) -> Iter<'_, K, V>ⓘ
[src]
Gets an iterator over the key-value entries in the hash map.
pub fn iter_pin(self: Pin<&mut Self>) -> IterPin<'_, K, V>ⓘ
[src]
Gets an iterator over the mutable key-value entries 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<C> + Eq + Hash, V: CheckBytes<C>, C: ArchiveBoundsContext + ArchiveMemoryContext + Fallible + ?Sized> CheckBytes<C> for ArchivedHashMap<K, V> where
C::Error: Error,
[src]
impl<K: CheckBytes<C> + Eq + Hash, V: CheckBytes<C>, C: ArchiveBoundsContext + ArchiveMemoryContext + Fallible + ?Sized> CheckBytes<C> for ArchivedHashMap<K, V> where
C::Error: Error,
[src]type Error = HashMapError<K::Error, V::Error, C::Error>
The error that may result from checking the type.
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
[src]
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
impl<K: Eq + Hash + Borrow<Q>, Q: Eq + Hash + ?Sized, V> Index<&'_ Q> 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, V: PartialEq> PartialEq<ArchivedHashMap<K, V>> for ArchivedHashMap<K, V>
[src]
impl<K: Hash + Eq, V: PartialEq> PartialEq<ArchivedHashMap<K, V>> for ArchivedHashMap<K, V>
[src]Auto Trait Implementations
impl<K, V> RefUnwindSafe for ArchivedHashMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> RefUnwindSafe for ArchivedHashMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for ArchivedHashMap<K, V> where
K: Send,
V: Send,
impl<K, V> Send for ArchivedHashMap<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for ArchivedHashMap<K, V> where
K: Sync,
V: Sync,
impl<K, V> Sync for ArchivedHashMap<K, V> where
K: Sync,
V: Sync,
impl<K, V> !Unpin for ArchivedHashMap<K, V>
impl<K, V> !Unpin for ArchivedHashMap<K, V>
impl<K, V> UnwindSafe for ArchivedHashMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
impl<K, V> UnwindSafe for ArchivedHashMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata