Module with
Available on crate feature
dep_rkyv
only.Expand description
Wrapper type support and commonly used wrappers.
Wrappers can be applied with the #[rkyv(with = ..)]
attribute in the
Archive
macro.
Structs§
- A type indicating acquire atomic loads.
- A wrapper that serializes a field into a box.
- A wrapper that serializes a
Cow
as if it were owned. - A wrapper that attempts to convert a type to and from UTF-8.
- A wrapper that serializes associative containers as a
Vec
of key-value pairs. - A wrapper that archives an atomic by loading its value with a particular ordering.
- Default
Niching
for various types. - A no-op wrapper which uses the default impls for the type.
- A wrapper that serializes a reference inline.
- A wrapper that serializes a reference as if it were boxed.
- A wrapper that locks a lock and serializes the value immutably.
- 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.
- 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.
- A wrapper that first applies another wrapper
W
to the value inside anOption
and then niches the result based on theNiching
N
. - A wrapper that niches some type combinations.
- A wrapper that niches based on a generic
Niching
. - A type indicating relaxed atomic loads.
- A type indicating sequentially-consistent atomic loads.
- A wrapper that skips serializing a field.
- A wrapper that allows serialize-unsafe types to be serialized.
- A wrapper that clones the contents of
Arc
andRc
pointers. - A transparent wrapper which applies a “with” type.
Traits§
- A variant of
Archive
that works with wrappers. - A variant of
Deserialize
for “with” types. - A variant of
Serialize
for “with” types.