pub fn to_bytes<T: Serialize>(v: &T) -> Result<Vec<u8>>
Expand description

Serialize some T into NBT data. See the ser module for more information.