logo

Module rkyv::with

source · []
Expand description

Wrapper type support and commonly used wrappers.

Wrappers can be applied with the #[with(...)] attribute in the Archive macro. See With for examples.

Structs

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 with an underlying atomic.

A wrapper that provides specialized, performant implementations of serialization and deserialization.

A wrapper to make a type immutable.

A wrapper that serializes a reference inline.

A wrapper that locks a lock and serializes the value immutably.

A wrapper that niches some type combinations.

A wrapper that provides an optimized bulk data array. This is primarily intended for large amounts of raw data, like bytes, floats, or integers.

A wrapper that serializes a reference as if it were boxed.

A wrapper that converts a SystemTime to a Duration since UNIX_EPOCH.

A wrapper that allows serialize-unsafe types to be serialized.

A transparent wrapper for archived fields.

Enums

Errors that can occur when serializing a AsString wrapper.

Errors that can occur while serializing a Lock wrapper

Errors that can occur when serializing a UnixTimestamp wrapper.

Traits

A variant of Archive that works with With wrappers.

A variant of Deserialize that works with With wrappers.

A variant of Serialize that works with With wrappers.

Type Definitions

BoxedDeprecated

A wrapper that serializes a reference as if it were boxed.