pub struct TextStyle {
pub italic: bool,
pub bold: bool,
pub underlined: bool,
pub color: Color,
}Expand description
A struct representing the style of a Text.
Fields§
§italic: boolItalic
bold: boolBold
underlined: boolUnderlined is not supported for now!
color: ColorThe color of the text
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
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