pub struct ColoredText {
pub text: String,
pub color: Color,
}Expand description
Colored text fragment.
Fields§
§text: StringThe text to display.
color: ColorThe color of the text.
Trait Implementations§
Source§impl Debug for ColoredText
impl Debug for ColoredText
Source§impl<'de> Deserialize<'de> for ColoredText
impl<'de> Deserialize<'de> for ColoredText
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ColoredText
impl RefUnwindSafe for ColoredText
impl Send for ColoredText
impl Sync for ColoredText
impl Unpin for ColoredText
impl UnwindSafe for ColoredText
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