memcomparable
A memcomparable serialization format.
The memcomparable format allows comparison of two values by using the simple memcmp function.
Installation
Add the memcomparable
to your Cargo.toml:
Usage
// serialize
let key1 = to_vec.unwrap;
let key2 = to_vec.unwrap;
assert!;
// deserialize
let v1: String = from_slice.unwrap;
let v2: String = from_slice.unwrap;
assert_eq!;
assert_eq!;
Optional Features
decimal
: Enable (de)serialization for Decimal type.
See the documentation for more details.
License
Apache License 2.0. Please refer to LICENSE for more information.