pub struct TextStyle {
pub color: Option<Color>,
pub background: Option<Color>,
pub bold: bool,
pub italic: bool,
pub underline: bool,
}Expand description
How a run of text looks. What it leaves unset stays as the editor’s own (its font and text colour).
Fields§
§color: Option<Color>The text colour.
background: Option<Color>A background behind the run.
bold: boolBold (the font’s bold face).
italic: boolItalic (the font’s italic face, where it has one).
underline: boolUnderlined.
Implementations§
Trait Implementations§
impl Copy for TextStyle
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Forget for TextStyle
impl Freeze for TextStyle
impl Move for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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