Function quartz_nbt::serde::deserialize
source · pub fn deserialize<T: DeserializeOwned>(
bytes: &[u8],
flavor: Flavor
) -> Result<(T, String), NbtIoError>
Expand description
Deserializes the given type from binary NBT data.
The NBT data must start with a compound tag and represent the type T
correctly, else the
deserializer will return with an error.