pub struct Style {
pub(crate) fg: Color,
pub(crate) bg: Color,
pub(crate) modifiers: CellModifier,
}Expand description
A style consisting of foreground, background, and text modifiers.
Fields§
§fg: ColorForeground color.
bg: ColorBackground color.
modifiers: CellModifierText modifiers.
Implementations§
Source§impl Style
impl Style
Sourcepub const fn foreground(&self) -> Color
pub const fn foreground(&self) -> Color
Returns the foreground color.
Sourcepub const fn background(&self) -> Color
pub const fn background(&self) -> Color
Returns the background color.
Sourcepub const fn modifiers(&self) -> CellModifier
pub const fn modifiers(&self) -> CellModifier
Returns the text modifiers.
Trait Implementations§
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 UnsafeUnpin 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