Trait nbt_lib::traits::AsNbtValue

source ·
pub trait AsNbtValue {
    // Required method
    fn as_nbt_value(&self) -> Result<NbtValue, ()>;
}
Expand description

A trait, that allowes to convert the struct to the nbt representation

Required Methods§

source

fn as_nbt_value(&self) -> Result<NbtValue, ()>

converts the struct to a NbtValue

Implementors§