pub struct Style {
pub fg_color: Option<Rgb>,
pub bg_color: Option<Rgb>,
pub is_bold: bool,
pub is_italic: bool,
pub is_underline: bool,
}
Expand description
The styling applied to a given HighlightGroup
.
When a field is given a None
value, then that field’s value defaults to that of the theme’s
default style. It was decided that only colours are to be optional, because it is exceedingly
rare that an entire theme wishes to be bold, italic or underlined.
Fields§
§fg_color: Option<Rgb>
its foreground colour
bg_color: Option<Rgb>
its background colour
is_bold: bool
whether to bolden
is_italic: bool
whether to italicise
is_underline: bool
whether to underline
Implementations§
Trait Implementations§
Source§impl Ord for Style
impl Ord for Style
Source§impl PartialOrd for Style
impl PartialOrd for Style
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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