pub struct ArchivedHashSet<K, H = FxHasher64> { /* private fields */ }Expand description
An archived HashSet. This is a wrapper around a hash map with the same key
and unit value.
Implementations§
Source§impl<K, H> ArchivedHashSet<K, H>
impl<K, H> ArchivedHashSet<K, H>
Source§impl<K, H: Hasher + Default> ArchivedHashSet<K, H>
impl<K, H: Hasher + Default> ArchivedHashSet<K, H>
Sourcepub fn get<Q>(&self, k: &Q) -> Option<&K>
pub fn get<Q>(&self, k: &Q) -> Option<&K>
Gets the key corresponding to the given key in the hash set.
Sourcepub fn resolve_from_len(
len: usize,
load_factor: (usize, usize),
resolver: HashSetResolver,
out: Place<Self>,
)
pub fn resolve_from_len( len: usize, load_factor: (usize, usize), resolver: HashSetResolver, out: Place<Self>, )
Resolves an archived hash set from the given length and parameters.
Sourcepub fn serialize_from_iter<I, KU, S>(
iter: I,
load_factor: (usize, usize),
serializer: &mut S,
) -> Result<HashSetResolver, S::Error>
pub fn serialize_from_iter<I, KU, S>( iter: I, load_factor: (usize, usize), serializer: &mut S, ) -> Result<HashSetResolver, S::Error>
Serializes an iterator of keys as a hash set.
Trait Implementations§
Source§impl<K, H, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedHashSet<K, H>
impl<K, H, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedHashSet<K, H>
Source§impl<K: Debug, H> Debug for ArchivedHashSet<K, H>
impl<K: Debug, H> Debug for ArchivedHashSet<K, H>
Source§impl<K, D, S> Deserialize<HashSet<K, S>, D> for ArchivedHashSet<K::Archived>
impl<K, D, S> Deserialize<HashSet<K, S>, D> for ArchivedHashSet<K::Archived>
Source§impl<K: Hash + Eq + Borrow<AK>, AK: Hash + Eq, S: BuildHasher> PartialEq<ArchivedHashSet<AK>> for HashSet<K, S>
impl<K: Hash + Eq + Borrow<AK>, AK: Hash + Eq, S: BuildHasher> PartialEq<ArchivedHashSet<AK>> for HashSet<K, S>
Source§impl<K: Hash + Eq + Borrow<AK>, AK: Hash + Eq, S: BuildHasher> PartialEq<HashSet<K, S>> for ArchivedHashSet<AK>
impl<K: Hash + Eq + Borrow<AK>, AK: Hash + Eq, S: BuildHasher> PartialEq<HashSet<K, S>> for ArchivedHashSet<AK>
impl<K: Hash + Eq, H: Hasher + Default> Eq for ArchivedHashSet<K, H>
impl<K, H> Portable for ArchivedHashSet<K, H>
Auto Trait Implementations§
impl<K, H> Freeze for ArchivedHashSet<K, H>
impl<K, H> RefUnwindSafe for ArchivedHashSet<K, H>where
H: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, H> Send for ArchivedHashSet<K, H>
impl<K, H> Sync for ArchivedHashSet<K, H>
impl<K, H = FxHasher64> !Unpin for ArchivedHashSet<K, H>
impl<K, H = FxHasher64> !UnsafeUnpin for ArchivedHashSet<K, H>
impl<K, H> UnwindSafe for ArchivedHashSet<K, H>where
H: UnwindSafe,
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.