Skip to main content

Module ser

Module ser 

Source
Expand description

Serialization for the database’s compact record codec.

Tuples place SEP between every pair of adjacent elements, while sequences follow each element’s separator state. Supported integer scalars use big-endian bytes, and Json and Cbor delegate their payloads to the corresponding self-describing format.

Structs§

Cbor
Wraps a value for CBOR encoding within the database codec.
Interfix
Finalizes a tuple prefix immediately after its trailing separator.
Json
Wraps a value for JSON encoding within the database codec.
Separator
Emits one record separator explicitly.
Serializer 🔒
Stateful writer for the compact database record format.

Constants§

SEP
Byte separating records in the compact database format.

Functions§

serialize
Serializes a value into a caller-provided output buffer.
serialize_to
Serializes a value into a default-constructed output buffer.
serialize_to_vec
Serializes a value into an owned byte vector.