Module ser

Module ser 

Source

Modules§

flavors
Serialization Flavors
serializer 🔒

Functions§

serialize_with_flavor
serialize_with_flavor() has three generic parameters, T, F, O.
serialized_size
Compute the size of the postcard serialization of T.
to_allocvec
Serialize a T to an alloc::vec::Vec<u8>.
to_allocvec_cobs
Serialize and COBS encode a T to an alloc::vec::Vec<u8>.
to_extend
Serialize a T to a core::iter::Extend,
to_io
Serialize a T to a std::io::Write,
to_slice
Serialize a T to the given slice, with the resulting slice containing data in a serialized format.
to_slice_cobs
Serialize a T to the given slice, with the resulting slice containing data in a serialized then COBS encoded format. The terminating sentinel 0x00 byte is included in the output buffer.
to_stdvec
Serialize a T to a std::vec::Vec<u8>.
to_stdvec_cobs
Serialize and COBS encode a T to a std::vec::Vec<u8>.