struct NbtComponentVisitor {
plain: bool,
sort_keys: bool,
result: TextComponent,
}Fields§
§plain: bool§sort_keys: bool§result: TextComponentImplementations§
Source§impl NbtComponentVisitor
impl NbtComponentVisitor
fn visit(&mut self, tag: &NbtTag, depth: usize)
fn byte_array(&mut self, values: &[u8])
fn int_array(&mut self, values: &[i32])
fn long_array(&mut self, values: &[i64])
fn list(&mut self, values: &[NbtTag], depth: usize)
fn compound(&mut self, value: &NbtCompound, depth: usize)
fn string(&mut self, value: &str)
fn key(&mut self, value: &str)
fn token(&mut self, value: &str)
fn folded(&mut self)
fn key_value(&mut self, value: String)
fn string_value(&mut self, value: String)
fn number(&mut self, value: String)
fn number_type(&mut self, value: &str)
fn styled(&mut self, value: String, color: Color)
Auto Trait Implementations§
impl Freeze for NbtComponentVisitor
impl RefUnwindSafe for NbtComponentVisitor
impl Send for NbtComponentVisitor
impl Sync for NbtComponentVisitor
impl Unpin for NbtComponentVisitor
impl UnsafeUnpin for NbtComponentVisitor
impl UnwindSafe for NbtComponentVisitor
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>