pub fn to_bytes_with_opts<T: Serialize>(v: &T, opts: SerOpts) -> Result<Vec<u8>>
Expand description

Serialize some T into NBT data. See the ser module for more information. The options allow you to set things like the root name of the compound when serialized.