pub enum Value {
}
Expand description
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(Name, i8)
Short(Name, i16)
Int(Name, i32)
Long(Name, i64)
Float(Name, f32)
Double(Name, f64)
ByteArray(Name, Vec<i8>)
String(Name, String)
List(Name, Tag, i32)
ListEnd
Compound(Name)
IntArray(Name, Vec<i32>)
LongArray(Name, Vec<i64>)
Trait Implementations
impl StructuralPartialEq for Value
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more