pub enum UnnamedTag {
End,
Byte(i8),
Short(i16),
Int(i32),
Long(i64),
Float(f32),
Double(f64),
ByteArray(Vec<i8>),
String(String),
List(Vec<UnnamedTag>),
Compound(Vec<NamedTag>),
}Expand description
An unnamed tag.
Variants§
End
The TAG_End tag. Normally not found anywhere but inside TAG_Compounds.
Byte(i8)
The TAG_Byte tag.
Short(i16)
The TAG_Short tag.
Int(i32)
The TAG_Int tag.
Long(i64)
The TAG_Long tag.
Float(f32)
The TAG_Float tag.
Double(f64)
The TAG_Double tag.
ByteArray(Vec<i8>)
The TAG_ByteArray tag.
String(String)
The TAG_String tag.
List(Vec<UnnamedTag>)
The TAG_List tag. This contains unnamed tags, which are guaranteed to be all of the same
type.
Compound(Vec<NamedTag>)
The TAG_Compound tag. This contains named tags, but the TAG_End tag which is always
present at the end is removed for ease of use.
Trait Implementations§
Source§impl Clone for UnnamedTag
impl Clone for UnnamedTag
Source§fn clone(&self) -> UnnamedTag
fn clone(&self) -> UnnamedTag
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnnamedTag
impl Debug for UnnamedTag
Source§impl PartialEq for UnnamedTag
impl PartialEq for UnnamedTag
impl StructuralPartialEq for UnnamedTag
Auto Trait Implementations§
impl Freeze for UnnamedTag
impl RefUnwindSafe for UnnamedTag
impl Send for UnnamedTag
impl Sync for UnnamedTag
impl Unpin for UnnamedTag
impl UnwindSafe for UnnamedTag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more