#[repr(u8)]
pub enum Tag {
Show 13 variants
End,
Byte,
Short,
Int,
Long,
Float,
Double,
ByteArray,
String,
List,
Compound,
IntArray,
LongArray,
}
Expand description
An NBT tag. This does not carry the value or the name of the data.
Variants
End
Represents the end of a Compound object.
Byte
Equivalent to i8.
Short
Equivalent to i16.
Int
Equivalent to i32.
Long
Equivalent to i64
Float
Equivalent to f32.
Double
Equivalent to f64.
ByteArray
Represents as array of Byte (i8).
String
Represents a Unicode string.
List
Represents a list of other objects, elements are not required to be the same type.
Compound
Represents a struct-like structure.
IntArray
Represents as array of Int (i32).
LongArray
Represents as array of Long (i64).
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
sourcefn 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more