Skip to main content

Module ser

Module ser 

Source
Expand description

Buffer for serializing data.

This is a copy and improvement of the serde private type: https://github.com/serde-rs/serde/blob/55a7cedd737278a9d75a2efd038c6f38b8c38bd6/serde/src/private/ser.rs#L338-L997 The code is very stable in the serde crate, so no maintainability problem is expected.

Since the type is private we copy the type here. serde is licensed as MIT+Apache2, the same as this crate.

This version carries improvements compared to serdeโ€™s version. The types support 128-bit integers, which is supported for all targets in Rust 1.40+. The ContentSerializer can also be configured to human readable or compact representation.

Structsยง

ContentSerializer ๐Ÿ”’
MapSerialize ๐Ÿ”’
SeqSerialize ๐Ÿ”’
StructSerialize ๐Ÿ”’
StructVariantSerialize ๐Ÿ”’
TupleSerialize ๐Ÿ”’
TupleStructSerialize ๐Ÿ”’
TupleVariantSerialize ๐Ÿ”’

Enumsยง

Content ๐Ÿ”’