Expand description
Wrapper type support and commonly used wrappers.
Wrappers can be applied with the #[rkyv(with = ..)]
attribute in the
Archive
macro.
Structs§
- Acquire
- A type indicating acquire atomic loads.
- AsBox
- A wrapper that serializes a field into a box.
- AsOwned
- A wrapper that serializes a
Cow
as if it were owned. - AsString
- A wrapper that attempts to convert a type to and from UTF-8.
- AsUnix
Time - A wrapper that converts a
SystemTime
to aDuration
sinceUNIX_EPOCH
. - AsVec
- A wrapper that serializes associative containers as a
Vec
of key-value pairs. - Atomic
Load - A wrapper that archives an atomic by loading its value with a particular ordering.
- Default
Niche - Default
Niching
for various types. - Identity
- A no-op wrapper which uses the default impls for the type.
- Inline
- A wrapper that serializes a reference inline.
- Inline
AsBox - A wrapper that serializes a reference as if it were boxed.
- Lock
- A wrapper that locks a lock and serializes the value immutably.
- Map
- A wrapper that applies another wrapper to the values contained in a type. This can be applied to a vector to map each element, or an option to map any contained value.
- MapKV
- A wrapper that applies key and value wrappers to the key-value pairs contained in a type. This can be applied to a hash map or B-tree map to map the key-value pairs.
- MapNiche
- A wrapper that first applies another wrapper
W
to the value inside anOption
and then niches the result based on theNiching
N
. - Niche
- A wrapper that niches some type combinations.
- Niche
Into - A wrapper that niches based on a generic
Niching
. - Relaxed
- A type indicating relaxed atomic loads.
- SeqCst
- A type indicating sequentially-consistent atomic loads.
- Skip
- A wrapper that skips serializing a field.
- Unsafe
- A wrapper that allows serialize-unsafe types to be serialized.
- Unshare
- A wrapper that clones the contents of
Arc
andRc
pointers. - With
- A transparent wrapper which applies a “with” type.
Traits§
- Archive
With - A variant of
Archive
that works with wrappers. - Deserialize
With - A variant of
Deserialize
for “with” types. - Serialize
With - A variant of
Serialize
for “with” types.