Expand description
MSD serialization.
This module provides all of the tools necessary for serializing types implementing
Serialize
into the MSD format.
Example
use std::collections::BTreeMap;
let mut map = BTreeMap::new();
map.insert("foo".to_owned(), 1);
map.insert("bar".to_owned(), 2);
let serialized = msd::to_bytes(&map).unwrap();
assert_eq!(serialized, b"#bar:2;\n#foo:1;\n");
Structs
- Serializes data into MSD format.
Enums
- An error that may occur during serialization.
Functions
- Serialize the given
value
into a byte buffer. - Serialize the given
value
into the givenwriter
in MSD format.