pub struct NbtString(pub String);Expand description
A network NBT TAG_String root value.
Unlike Nbt, which represents a root compound, this type writes tag ID
8 followed directly by the NBT string payload. NBT uses Java CESU-8.
Tuple Fields§
§0: StringTrait Implementations§
impl Eq for NbtString
impl StructuralPartialEq for NbtString
Auto Trait Implementations§
impl Freeze for NbtString
impl RefUnwindSafe for NbtString
impl Send for NbtString
impl Sync for NbtString
impl Unpin for NbtString
impl UnsafeUnpin for NbtString
impl UnwindSafe for NbtString
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> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.