pub struct TextColor {
pub value: u32,
pub name: Option<String>,
}
Fields§
§value: u32
§name: Option<String>
Implementations§
Trait Implementations§
Source§impl ToNbtTag for TextColor
impl ToNbtTag for TextColor
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<ChatFormatting> for TextColor
impl TryFrom<ChatFormatting> for TextColor
impl Eq for TextColor
impl StructuralPartialEq for TextColor
Auto Trait Implementations§
impl Freeze for TextColor
impl RefUnwindSafe for TextColor
impl Send for TextColor
impl Sync for TextColor
impl Unpin for TextColor
impl UnwindSafe for TextColor
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)