lize
A stupid way of serializing data into a slice. Designed for really small data.
use Value;
// You can create hashmaps like so:
let value = HashMap;
// ..then serialize it into a SmallVec (recommended)
let mut buffer = new;
value.serialize_into?;
// Alternatively, you can serialize it into a Vec.
// That'd be more convenient.
// let buffer = value.serialize()?;
// Then, we can take a look at our deserialized data.
let deserialized = deserialize_from?;
println!;
let mut buffer = new;
value.serialize_into?;
Value
There are some other cool usages other than just hashmaps.
let value = Vector;
Of course, if you would, you can use Value::from(...) instead of doing that manually. Saves time!
let a = 123_i64;
let v = from;
assert!;
(de)serializing directly
You can use serialize(...) and deserialize(...) to have the Bincode-like interface.
let a = 123_i64;
let ser = serialize?;
let b: i64 = deserialize?;
assert_eq!;
(c) 2025 AWeirdDev