[][src]Enum blocky_nbt::Tag

pub enum Tag {
    End,
    Byte(i8),
    Short(i16),
    Int(i32),
    Long(i64),
    Float(f32),
    Double(f64),
    ByteArray(Vec<i8>),
    String(String),
    List(Vec<Self>),
    Compound(Map<String, Self>),
    IntArray(Vec<i32>),
    LongArray(Vec<i64>),
}

Variants

End
Byte(i8)
Short(i16)
Int(i32)
Long(i64)
Float(f32)
Double(f64)
ByteArray(Vec<i8>)
String(String)
List(Vec<Self>)
Compound(Map<String, Self>)
IntArray(Vec<i32>)
LongArray(Vec<i64>)

Implementations

impl Tag[src]

pub fn kind(&self) -> Kind[src]

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

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

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

Trait Implementations

impl Clone for Tag[src]

impl Debug for Tag[src]

impl Display for Tag[src]

impl<I: Index> Index<I> for Tag[src]

type Output = Self

The returned type after indexing.

impl<I: Index> IndexMut<I> for Tag[src]

impl Into<String> for Tag[src]

impl<'b> Into<String> for &'b Tag[src]

impl Into<Tag> for i8[src]

impl Into<Tag> for i16[src]

impl Into<Tag> for i32[src]

impl Into<Tag> for i64[src]

impl Into<Tag> for f32[src]

impl Into<Tag> for f64[src]

impl Into<Tag> for String[src]

impl Into<Tag> for Vec<i8>[src]

impl Into<Tag> for Vec<i32>[src]

impl Into<Tag> for Vec<i64>[src]

impl Into<Vec<i32>> for Tag[src]

impl<'b> Into<Vec<i32>> for &'b Tag[src]

impl Into<Vec<i64>> for Tag[src]

impl<'b> Into<Vec<i64>> for &'b Tag[src]

impl Into<Vec<i8>> for Tag[src]

impl<'b> Into<Vec<i8>> for &'b Tag[src]

impl Into<f32> for Tag[src]

impl<'b> Into<f32> for &'b Tag[src]

impl Into<f64> for Tag[src]

impl<'b> Into<f64> for &'b Tag[src]

impl Into<i16> for Tag[src]

impl<'b> Into<i16> for &'b Tag[src]

impl Into<i32> for Tag[src]

impl<'b> Into<i32> for &'b Tag[src]

impl Into<i64> for Tag[src]

impl<'b> Into<i64> for &'b Tag[src]

impl Into<i8> for Tag[src]

impl<'b> Into<i8> for &'b Tag[src]

impl PartialEq<Tag> for Tag[src]

impl StructuralPartialEq for Tag[src]

Auto Trait Implementations

impl RefUnwindSafe for Tag

impl Send for Tag

impl Sync for Tag

impl Unpin for Tag

impl UnwindSafe for Tag

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> ToString for T where
    T: Display + ?Sized
[src]

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.