pub struct Style(/* private fields */);
Expand description
Styles that can apply to anything drawn on the screen.
Styles are composed of foreground colors, background colors,
and text modifiers. These fields are optional (modifiers have Modifier::NONE
),
and can be merged together when multiple styles are applied.
Style
also conveniently implements From<Color>
, which creates a style
with the provided color as the foreground color.
Implementations§
Trait Implementations§
source§impl PartialEq for Style
impl PartialEq for Style
impl Copy for Style
impl Eq for Style
impl StructuralEq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
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