Expand description
Support code for encoding and decoding types.
Macrosยง
- direct_
serialize_ ๐impls - peel ๐
- tuple ๐
Constantsยง
- STR_
SENTINEL ๐ - A byte that cannot occur in UTF8 sequences. Used to mark the end of a string. This way we can skip validation and still be relatively sure that deserialization did not desynchronize.
Traitsยง
- Decodable
- Trait for types that can be deserialized
- Decoder
- This current does not support
f32
norf64
, as theyโre not needed in any serialized data structures. That could be changed, but consider whether it really makes sense to store floating-point values at all. (If you need it, revert https://github.com/rust-lang/rust/pull/109984.) - Encodable
- Trait for types that can be serialized
- Encoder
- A note about error handling.