Crate tetsy_codec[−][src]
Implements a serialization and deserialization codec for simple marshalling.
Modules
alloc |
Structs
Compact | Compact-encoded variant of T. This is more space-efficient but less compute-efficient. |
Traits
Codec | Trait that allows zero-copy read/write of value-references to/from slices in LE format. |
CompactAs | Allow foreign structs to be wrap in Compact |
Decode | Trait that allows zero-copy read of value-references from slices in LE format. |
Encode | Trait that allows zero-copy write of value-references to slices in LE format.
Implementations should override |
EncodeAsRef | Something that can be encoded as a reference. |
HasCompact | Trait that tells you if a given type can be encoded/decoded in a compact way. |
Input | Trait that allows reading of data into a slice. |
Joiner | Trait to allow itself to be serialised into a value which can be extended by bytes. |
KeyedVec | Trait to allow itself to be serialised and prepended by a given slice. |
Output | Trait that allows writing of data. |