Enum fastnbt::stream::Value[][src]

pub enum Value {
    CompoundEnd,
    Byte(Namei8),
    Short(Namei16),
    Int(Namei32),
    Long(Namei64),
    Float(Namef32),
    Double(Namef64),
    ByteArray(NameVec<i8>),
    String(NameString),
    List(NameTagi32),
    ListEnd,
    Compound(Name),
    IntArray(NameVec<i32>),
    LongArray(NameVec<i64>),
}

A shallow NBT value.

For every value except compounds and lists, this contains the value of the tag. For example, a Value::Byte will contain the name and the byte of that NBT tag.

The name part of each variant is optional, since elements in an NBT list do not have names. The end of lists do not have a name in the binary format, so it isn’t included here either.

See Parser for more information.

Variants

CompoundEnd
Byte(Namei8)
Short(Namei16)
Int(Namei32)
Long(Namei64)
Float(Namef32)
Double(Namef64)
ByteArray(NameVec<i8>)
String(NameString)
List(NameTagi32)
ListEnd
Compound(Name)
IntArray(NameVec<i32>)
LongArray(NameVec<i64>)

Trait Implementations

impl Debug for Value[src]

impl PartialEq<Value> for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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, 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.