pub struct ArchivedIndexSet<K, H = FxHasher64> { /* private fields */ }Expand description
An archived IndexSet.
Implementations§
Source§impl<K, H> ArchivedIndexSet<K, H>
impl<K, H> ArchivedIndexSet<K, H>
Source§impl<K, H: Default + Hasher> ArchivedIndexSet<K, H>
impl<K, H: Default + Hasher> ArchivedIndexSet<K, H>
Sourcepub fn get_full<Q>(&self, k: &Q) -> Option<(usize, &K)>
pub fn get_full<Q>(&self, k: &Q) -> Option<(usize, &K)>
Returns the item index and value stored in the set, if any.
Sourcepub fn get_index_of<Q>(&self, key: &Q) -> Option<usize>
pub fn get_index_of<Q>(&self, key: &Q) -> Option<usize>
Returns the index of a key if it exists in the set.
Sourcepub fn resolve_from_len(
len: usize,
load_factor: (usize, usize),
resolver: IndexSetResolver,
out: Place<Self>,
)
pub fn resolve_from_len( len: usize, load_factor: (usize, usize), resolver: IndexSetResolver, out: Place<Self>, )
Resolves an archived index map from a given length and parameters.
Sourcepub fn serialize_from_iter<I, UK, S>(
iter: I,
load_factor: (usize, usize),
serializer: &mut S,
) -> Result<IndexSetResolver, S::Error>
pub fn serialize_from_iter<I, UK, S>( iter: I, load_factor: (usize, usize), serializer: &mut S, ) -> Result<IndexSetResolver, S::Error>
Serializes an iterator of keys as an index set.
Trait Implementations§
Source§impl<K, H, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedIndexSet<K, H>
impl<K, H, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedIndexSet<K, H>
Source§impl<K: Debug, H> Debug for ArchivedIndexSet<K, H>
impl<K: Debug, H> Debug for ArchivedIndexSet<K, H>
Source§impl<K: PartialEq, H> PartialEq for ArchivedIndexSet<K, H>
impl<K: PartialEq, H> PartialEq for ArchivedIndexSet<K, H>
impl<K: Eq, H> Eq for ArchivedIndexSet<K, H>
impl<K, H> Portable for ArchivedIndexSet<K, H>
Auto Trait Implementations§
impl<K, H> Freeze for ArchivedIndexSet<K, H>
impl<K, H> RefUnwindSafe for ArchivedIndexSet<K, H>where
H: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, H> Send for ArchivedIndexSet<K, H>
impl<K, H> Sync for ArchivedIndexSet<K, H>
impl<K, H = FxHasher64> !Unpin for ArchivedIndexSet<K, H>
impl<K, H = FxHasher64> !UnsafeUnpin for ArchivedIndexSet<K, H>
impl<K, H> UnwindSafe for ArchivedIndexSet<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.