[][src]Struct blocky_nbt::Nbt

pub struct Nbt {
    pub name: String,
    pub tag: Tag,
}

Fields

name: Stringtag: Tag

Implementations

impl Nbt[src]

pub fn decode<R: Read>(src: &mut R) -> Result<Self>[src]

impl Nbt[src]

pub fn encode<W: Write>(&self, dst: &mut W, compress: bool) -> Result<()>[src]

impl Nbt[src]

pub fn parse<S: Into<String>>(s: S) -> Result<Tag>[src]

impl Nbt[src]

pub fn new(name: String, tag: Tag) -> Self[src]

pub fn get<I: Index>(&self, index: I) -> Option<&Tag>[src]

pub fn get_mut<I: Index>(&mut self, index: I) -> Option<&mut Tag>[src]

pub fn insert<I: Index>(&mut self, index: I, value: Tag)[src]

Trait Implementations

impl Clone for Nbt[src]

impl Debug for Nbt[src]

impl<'_> Index<&'_ str> for Nbt[src]

type Output = Tag

The returned type after indexing.

impl<'_> IndexMut<&'_ str> for Nbt[src]

impl PartialEq<Nbt> for Nbt[src]

impl StructuralPartialEq for Nbt[src]

Auto Trait Implementations

impl RefUnwindSafe for Nbt

impl Send for Nbt

impl Sync for Nbt

impl Unpin for Nbt

impl UnwindSafe for Nbt

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.