Skip to main content

Crate vercode

Crate vercode 

Source

Structs§

InvalidEncoding

Traits§

VerCodable
Unified versioned serialization/deserialization trait.

Functions§

deserialize
Deserialize a value from the provided buffer.
deserialize_version
Deserialize a value from a specific version. Only fields with version less than or equal to the specified version will be deserialized; higher-version fields will be initialized with default values.
serialize
Serialize a value into the provided buffer, returning a slice of the buffer that contains the serialized data.
serialize_to_vec
Serialize a value to a newly allocated Vec<u8>.
serialize_version
Serialize a value up to a specific version. Only fields with version less than or equal to the specified version will be serialized.
size
Return the size of the buffer that would be returned by serialize.
size_version
Return the size of the buffer that would be returned by serialize_version for the given version.

Derive Macros§

Vercode
VercodeTransparent