pub struct Text {
pub content: String,
pub style: Option<TextStyle>,
}Expand description
Text content with styling
Fields§
§content: String§style: Option<TextStyle>Implementations§
Source§impl Text
impl Text
Sourcepub fn background(self, color: Color) -> Self
pub fn background(self, color: Color) -> Self
Sets the background color
Sourcepub fn strikethrough(self) -> Self
pub fn strikethrough(self) -> Self
Makes the text strikethrough
Trait Implementations§
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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