Module serialize

Source
Expand description

This module deals with serializing rust types into raw SPA pods.

A raw pod can be serialized by passing a implementor of the PodSerialize trait to PodSerializer::serialize.

The crate provides a number of implementors of this trait either directly, or through FixedSizedPod.

You can also implement the PodSerialize trait on another type yourself. See the traits documentation for more information on how to do that.

Structs§

ArrayPodSerializer
This struct handles serializing arrays.
ObjectPodSerializer
This struct handles serializing objects.
PodSerializer
This struct is responsible for serializing a PodSerialize implementor into the raw POD format.
SerializeSuccess
This struct is returned by PodSerialize implementors on serialization success.
StructPodSerializer
This struct handles serializing structs.

Enums§

GenError
Base type for generator errors

Traits§

PodSerialize
Implementors of this trait are able to serialize themselves into a SPA pod by using a PodSerializer.