Struct rkyv::collections::hash_index::ArchivedHashIndex [−][src]
pub struct ArchivedHashIndex { /* fields omitted */ }
Expand description
An archived hash index.
Implementations
Gets the hasher for this hash index. The hasher for all archived hash indexes is the same for reproducibility.
Returns the index where a key may be located in the hash index.
The hash index does not have access to the keys used to build it, so the key at the returned index must be checked for equality.
pub unsafe fn resolve_from_len(
len: usize,
pos: usize,
resolver: HashIndexResolver,
out: *mut Self
)
pub unsafe fn resolve_from_len(
len: usize,
pos: usize,
resolver: HashIndexResolver,
out: *mut Self
)
Resolves an archived hash index from a given length and parameters.
Safety
len
must be the number of elements in the hash indexpos
must be the position ofout
within the archiveresolver
must be the result of building and serializing a hash index
Trait Implementations
type Error = HashIndexError<C::Error>
type Error = HashIndexError<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>
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
Checks whether the given pointer points to a valid value within the given context. Read more
Auto Trait Implementations
impl RefUnwindSafe for ArchivedHashIndex
impl Send for ArchivedHashIndex
impl Sync for ArchivedHashIndex
impl !Unpin for ArchivedHashIndex
impl UnwindSafe for ArchivedHashIndex
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,