Struct rkyv::ser::serializers::CompositeSerializer[][src]

pub struct CompositeSerializer<S = Infallible, C = Infallible, H = Infallible> { /* fields omitted */ }
Expand description

A serializer built from composeable pieces.

Implementations

Creates a new composite serializer from serializer, scratch, and shared components.

Consumes the composite serializer and returns the components.

Consumes the composite serializer and returns the serializer.

The scratch space and shared component are discarded.

Trait Implementations

Returns the “default value” for a type. Read more

The error produced by any failing methods.

Allocates scratch space of the requested size. Read more

Deallocates previously allocated scratch space. Read more

Returns the current position of the serializer.

Attempts to write the given bytes to the serializer.

Advances the given number of bytes as padding.

Aligns the position of the serializer to the given alignment.

Aligns the position of the serializer to be suitable to write the given type.

Resolves the given value with its resolver and writes the archived type. Read more

Resolves the given reference with its resolver and writes the archived reference. Read more

Archives the given object and returns the position it was archived at.

Archives a reference to the given object and returns the position it was archived at.

Gets the position of a previously-added shared pointer. Read more

Adds the position of a shared pointer to the registry.

Gets the position of a previously-added shared value. Read more

Adds the position of a shared value to the registry.

Archives the given shared value and returns its position. If the value has already been added then it returns the position of the previously added value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Performs the conversion.

Performs the conversion.

Gets the layout of the type.

The type for metadata in pointers and references to Self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.