[−][src]Struct rkyv::std_impl::hashbrown::ArchivedHashSet
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]
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<ArchiveContext> + Eq + Hash> CheckBytes<ArchiveContext> for ArchivedHashSet<K>
[src]
type Error = ArchivedHashMapError<K::Error, <() as CheckBytes<ArchiveContext>>::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 + Hash + Eq> Debug 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]
pub fn eq(&self, other: &ArchivedHashSet<K>) -> bool
[src]
pub fn ne(&self, other: &ArchivedHashSet<K>) -> bool
[src]
impl<K: Hash + Eq> StructuralEq 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,
K: RefUnwindSafe,
impl<K> Send for ArchivedHashSet<K> where
K: Send,
K: Send,
impl<K> Sync for ArchivedHashSet<K> where
K: Sync,
K: Sync,
impl<K> !Unpin for ArchivedHashSet<K>
impl<K> UnwindSafe for ArchivedHashSet<K> where
K: UnwindSafe,
K: 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>,