Struct rkyv::std_impl::chd::ArchivedHashSet [−][src]
An archived HashSet
. This is a wrapper around a hash map with the same key and a value of
()
.
Implementations
impl<K: Hash + Eq> ArchivedHashSet<K>
[src]
impl<K: Hash + Eq> ArchivedHashSet<K>
[src]pub fn len(&self) -> usize
[src]
Gets the number of items in the hash set.
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&K> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Gets the key corresponding to the given key in the hash set.
pub fn contains<Q: ?Sized>(&self, k: &Q) -> bool where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Returns whether the given key is in the hash set.
pub fn hasher(&self) -> SeaHasher
[src]
Gets the hasher for the underlying hash map.
pub fn is_empty(&self) -> bool
[src]
Returns whether there are no items in the hash set.
pub fn iter(&self) -> Keys<'_, K, ()>ⓘ
[src]
Gets an iterator over the keys of the underlying hash map.
Trait Implementations
impl<K: CheckBytes<C> + Hash + Eq, C: ArchiveBoundsContext + ArchiveMemoryContext + Fallible + ?Sized> CheckBytes<C> for ArchivedHashSet<K> where
C::Error: Error,
[src]
impl<K: CheckBytes<C> + Hash + Eq, C: ArchiveBoundsContext + ArchiveMemoryContext + Fallible + ?Sized> CheckBytes<C> for ArchivedHashSet<K> where
C::Error: Error,
[src]type Error = HashMapError<K::Error, <() as CheckBytes<C>>::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> Eq for ArchivedHashSet<K>
[src]
impl<K: Eq + Hash> Eq for ArchivedHashSet<K>
[src]impl<K: PartialEq + Hash + Eq> PartialEq<ArchivedHashSet<K>> for ArchivedHashSet<K>
[src]
impl<K: PartialEq + Hash + Eq> PartialEq<ArchivedHashSet<K>> for ArchivedHashSet<K>
[src]fn eq(&self, other: &ArchivedHashSet<K>) -> bool
[src]
fn ne(&self, other: &ArchivedHashSet<K>) -> bool
[src]
impl<K: Hash + Eq> StructuralEq for ArchivedHashSet<K>
[src]
impl<K: Hash + Eq> StructuralEq for ArchivedHashSet<K>
[src]impl<K: Hash + Eq> StructuralPartialEq for ArchivedHashSet<K>
[src]
impl<K: Hash + Eq> StructuralPartialEq for ArchivedHashSet<K>
[src]Auto Trait Implementations
impl<K> RefUnwindSafe for ArchivedHashSet<K> where
K: RefUnwindSafe,
impl<K> RefUnwindSafe for ArchivedHashSet<K> where
K: RefUnwindSafe,
impl<K> Send for ArchivedHashSet<K> where
K: Send,
impl<K> Send for ArchivedHashSet<K> where
K: Send,
impl<K> Sync for ArchivedHashSet<K> where
K: Sync,
impl<K> Sync for ArchivedHashSet<K> where
K: Sync,
impl<K> !Unpin for ArchivedHashSet<K>
impl<K> !Unpin for ArchivedHashSet<K>
impl<K> UnwindSafe for ArchivedHashSet<K> where
K: UnwindSafe,
impl<K> UnwindSafe for ArchivedHashSet<K> where
K: 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