pub fn to_bytes<T: Serialize>(v: &T) -> Result<Vec<u8>>
Serialize some T into NBT data. See the ser module for more information.
T
ser