Module rust_fr::serializer

source ·
Expand description

§Serializer

The module that handles the serialization of the data.

To use the serializer, call the to_bytes function with a reference to the data to be serialized. The data must implement the Serialize trait from the serde library.

Enums§

  • The delimiter used in the format specification. The purpose of delimiters is to separate different types of data such that they don’t mangle. There are 8 different delimiters in the format specification out of which 3 (String, Byte & Map) are 1 byte long and 5 (the rest…) are 3 bits long.

Functions§

  • The function to serialize data of a given type to a byte vector. The value must implement the Serialize trait from the serde library. It returns a Result with the serialized byte vector or an error.