#[repr(u8)]pub enum Tag {
Show 13 variants
End = 0,
Byte = 1,
Short = 2,
Int = 3,
Long = 4,
Float = 5,
Double = 6,
ByteArray = 7,
String = 8,
List = 9,
Compound = 10,
IntArray = 11,
LongArray = 12,
}
Expand description
An NBT tag. This does not carry the value or the name of the data.
Variants§
End = 0
Represents the end of a Compound object.
Byte = 1
Equivalent to i8.
Short = 2
Equivalent to i16.
Int = 3
Equivalent to i32.
Long = 4
Equivalent to i64
Float = 5
Equivalent to f32.
Double = 6
Equivalent to f64.
ByteArray = 7
Represents as array of Byte (i8).
String = 8
Represents a Unicode string.
List = 9
Represents a list of other objects, elements are not required to be the same type.
Compound = 10
Represents a struct-like structure.
IntArray = 11
Represents as array of Int (i32).
LongArray = 12
Represents as array of Long (i64).
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Tag
impl StructuralPartialEq for Tag
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§
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