pub struct NbtCompound { /* private fields */ }
Expand description
A Compound NBT Tag, containing multiple, named, unordered, NBT Tags
Implementations§
Source§impl NbtCompound
impl NbtCompound
Sourcepub fn new() -> NbtCompound
pub fn new() -> NbtCompound
Creates a new, empty, Compound
Sourcepub fn get<S: AsRef<str> + ?Sized>(&self, st: &S) -> Option<&NbtTag>
pub fn get<S: AsRef<str> + ?Sized>(&self, st: &S) -> Option<&NbtTag>
Gets the element of the Compound with the given Name
Trait Implementations§
Source§impl Clone for NbtCompound
impl Clone for NbtCompound
Source§fn clone(&self) -> NbtCompound
fn clone(&self) -> NbtCompound
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NbtCompound
impl Debug for NbtCompound
Source§impl Default for NbtCompound
impl Default for NbtCompound
Source§fn default() -> NbtCompound
fn default() -> NbtCompound
Returns the “default value” for a type. Read more
Source§impl DeserializeCopy for NbtCompound
impl DeserializeCopy for NbtCompound
Source§impl Deserializeable for NbtCompound
impl Deserializeable for NbtCompound
Source§impl Serializeable for NbtCompound
impl Serializeable for NbtCompound
Auto Trait Implementations§
impl Freeze for NbtCompound
impl RefUnwindSafe for NbtCompound
impl Send for NbtCompound
impl Sync for NbtCompound
impl Unpin for NbtCompound
impl UnwindSafe for NbtCompound
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more