serialize-bits
Rust serializer/deserializer : Struct to bits, bits to Struct.
The library already implements the traits for :
- u8, u16, u32, u64, u128, usize
- i8, i16, i32, i64, i128, isize
- char
- bool
- String
- Option
- SocketAddr
- Vec, VecDeque, LinkedList
- HashSet, BTreeSet
- BinaryHeap
- HashMap<K, V>, BTreeMap<K, V>
Serialization
Implement the SerializerData trait.
Example :
Deserialization
Implement the DeserializerData trait.
Example :