pub struct NamedTag {
pub name: String,
pub tag: Tag,
}Expand description
A named root tag.
Fields§
§name: StringRoot name (usually empty on the network).
tag: TagThe root tag (usually a compound).
Trait Implementations§
Source§impl Encode for NamedTag
impl Encode for NamedTag
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.impl StructuralPartialEq for NamedTag
Auto Trait Implementations§
impl !Freeze for NamedTag
impl RefUnwindSafe for NamedTag
impl Send for NamedTag
impl Sync for NamedTag
impl Unpin for NamedTag
impl UnsafeUnpin for NamedTag
impl UnwindSafe for NamedTag
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