Enum nbt::Tag [−][src]
A NBT Tag, representing the 13 datatypes supported by the format.
Variants
Byte(i8)
Short(i16)
Int(i32)
Long(i64)
Float(f32)
Double(f64)
String(String)
Implementations
impl Tag
[src]
pub fn id(&self) -> u8
[src]
👎 Deprecated
pub fn ident(&self) -> TagIdent
[src]
The TagIdent
representation of a tag.
Used to identify the prefix of a type.
Trait Implementations
impl Debug for Tag
[src]
impl FromTag for Tag
[src]
impl NBTRead for Tag
[src]
fn read<R: Read>(reader: &mut R) -> Result<Self, NBTError>
[src]
fn from_bytes<B: AsRef<[u8]>>(data: B) -> Result<Self, NBTError>
[src]
impl NBTWrite for Tag
[src]
fn write<W: Write>(&self, writer: &mut W) -> Result<(), NBTError>
[src]
fn bytes(&self) -> Result<Vec<u8>, NBTError>
[src]
impl PartialEq<Tag> for Tag
[src]
impl StructuralPartialEq for Tag
[src]
impl ToTag for Tag
[src]
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
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, 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>,