Enum nbt::TagIdent [−][src]
The numerical representation of Tag types.
Used within the internal encode/decode process and hence is returned within errors.
Variants
TAG_End (0)
Signifies the end of a TAG_Compound. It is only ever used inside a TAG_Compound, and is not named despite being in a TAG_Compound
TAG_Byte (1)
A single signed byte
TAG_Short (2)
A single signed, big endian 16 bit integer
TAG_Int (3)
A single signed, big endian 32 bit integer
TAG_Long (4)
A single signed, big endian 64 bit integer
TAG_Float (5)
A single, big endian IEEE-754 single-precision floating point number (NaN possible)
TAG_Double (6)
A single, big endian IEEE-754 double-precision floating point number (NaN possible)
TAG_Byte_Array (7)
A length-prefixed array of signed bytes. The prefix is a signed integer (thus 4 bytes)
TAG_String (8)
A length-prefixed modified UTF-8 string. The prefix is an unsigned short (thus 2 bytes) signifying the length of the string in bytes
TAG_List (9)
A list of nameless tags, all of the same type. The list is prefixed with the Type ID of the items it contains (thus 1 byte), and the length of the list as a signed integer (a further 4 bytes). If the length of the list is 0 or negative, the type may be 0 (TAG_End) but otherwise it must be any other type. (The notchian implementation uses TAG_End in that situation, but another reference implementation by Mojang uses 1 instead; parsers should accept any type if the length is <= 0).
TAG_Compound (10)
Effectively a list of a named tags. Order is not guaranteed.
TAG_Int_Array (11)
A length-prefixed array of signed integers. The prefix is a signed integer (thus 4 bytes) and indicates the number of 4 byte integers.
TAG_Long_Array (12)
A length-prefixed array of signed longs. The prefix is a signed integer (thus 4 bytes) and indicates the number of 8 byte longs.
Implementations
impl TagIdent
[src]
Trait Implementations
impl Clone for TagIdent
[src]
impl Debug for TagIdent
[src]
impl Display for TagIdent
[src]
impl PartialEq<TagIdent> for TagIdent
[src]
fn eq(&self, other: &TagIdent) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<TagIdent> for TagIdent
[src]
fn partial_cmp(&self, other: &TagIdent) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for TagIdent
[src]
Auto Trait Implementations
impl RefUnwindSafe for TagIdent
impl Send for TagIdent
impl Sync for TagIdent
impl Unpin for TagIdent
impl UnwindSafe for TagIdent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,