Struct rkyv::collections::index_set::ArchivedIndexSet   
source · [−]#[repr(transparent)]pub struct ArchivedIndexSet<K> { /* private fields */ }Expand description
An archived IndexSet.
Implementations
sourceimpl<K> ArchivedIndexSet<K>
 
impl<K> ArchivedIndexSet<K>
sourcepub fn contains<Q: ?Sized>(&self, k: &Q) -> bool where
    K: Borrow<Q>,
    Q: Hash + Eq, 
 
pub fn contains<Q: ?Sized>(&self, k: &Q) -> bool where
    K: Borrow<Q>,
    Q: Hash + Eq, 
Returns whether a key is present in the hash set.
sourcepub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&K> where
    K: Borrow<Q>,
    Q: Hash + Eq, 
 
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&K> where
    K: Borrow<Q>,
    Q: Hash + Eq, 
Returns the value stored in the set, if any.
sourcepub fn get_full<Q: ?Sized>(&self, k: &Q) -> Option<(usize, &K)> where
    K: Borrow<Q>,
    Q: Hash + Eq, 
 
pub fn get_full<Q: ?Sized>(&self, k: &Q) -> Option<(usize, &K)> where
    K: Borrow<Q>,
    Q: Hash + Eq, 
Returns the item index and value stored in the set, if any.
sourcepub fn get_index_of<Q: ?Sized>(&self, key: &Q) -> Option<usize> where
    K: Borrow<Q>,
    Q: Hash + Eq, 
 
pub fn get_index_of<Q: ?Sized>(&self, key: &Q) -> Option<usize> where
    K: Borrow<Q>,
    Q: Hash + Eq, 
Returns the index of a key if it exists in the set.
sourcepub fn hasher(&self) -> HashBuilder
 
pub fn hasher(&self) -> HashBuilder
Gets the hasher for this index set.
sourcepub fn iter(&self) -> Keys<'_, K, ()>ⓘNotable traits for Keys<'a, K, V>impl<'a, K, V> Iterator for Keys<'a, K, V>    type Item = &'a K;
 
pub fn iter(&self) -> Keys<'_, K, ()>ⓘNotable traits for Keys<'a, K, V>impl<'a, K, V> Iterator for Keys<'a, K, V>    type Item = &'a K;
Returns an iterator over the keys of the index set in order.
sourcepub unsafe fn resolve_from_len(
    len: usize, 
    pos: usize, 
    resolver: IndexSetResolver, 
    out: *mut Self
)
 
pub unsafe fn resolve_from_len(
    len: usize, 
    pos: usize, 
    resolver: IndexSetResolver, 
    out: *mut Self
)
Resolves an archived index map from a given length and parameters.
Safety
- lenmust be the number of elements that were serialized
- posmust be the position of- outwithin the archive
- resolvermust be the result of serializing a hash map
Trait Implementations
sourceimpl<K: Debug> Debug for ArchivedIndexSet<K>
 
impl<K: Debug> Debug for ArchivedIndexSet<K>
Auto Trait Implementations
impl<K> RefUnwindSafe for ArchivedIndexSet<K> where
    K: RefUnwindSafe, 
impl<K> Send for ArchivedIndexSet<K> where
    K: Send, 
impl<K> Sync for ArchivedIndexSet<K> where
    K: Sync, 
impl<K> !Unpin for ArchivedIndexSet<K>
impl<K> UnwindSafe for ArchivedIndexSet<K> where
    K: UnwindSafe, 
Blanket Implementations
sourceimpl<T> ArchivePointee for T
 
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
 
fn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
 
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more