Expand description
Defines a generic trait for version tolerant serialization and deserialization
and implements it for primitive data types using the bincode
format.
The Revisioned
trait is automatically implemented for the following primitives:
u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, isize, f32, f64, char,
String, Vec
Re-exports§
pub use crate::error::Error;
Modules§
Traits§
- Deserialize
Revisioned - Revisioned
- Trait that provides an interface for version aware serialization and deserialization.
- Serialize
Revisioned
Functions§
- from_
reader - Deserialize a revisioned type from a reader
- from_
slice - Deserialize a revisioned type from a slice of bytes
- to_vec
- Serialize a revisioned type into a vec of bytes
- to_
writer - Serialize a revisioned type into a vec of bytes
Attribute Macros§
- revisioned
- Generates serialization and deserialization code as an implementation of
the
Revisioned
trait for structs and enums.