pub struct Style {
pub bold: Option<bool>,
pub underline: Option<bool>,
pub foreground: Option<Rgb24>,
pub background: Option<Rgb24>,
}Fields§
§bold: Option<bool>§underline: Option<bool>§foreground: Option<Rgb24>§background: Option<Rgb24>Implementations§
Source§impl Style
impl Style
pub const fn new() -> Self
pub const fn with_bold(self, bold: bool) -> Self
pub const fn with_underline(self, underline: bool) -> Self
pub const fn with_foreground(self, foreground: Rgb24) -> Self
pub const fn with_background(self, background: Rgb24) -> Self
pub const fn without_bold(self) -> Self
pub const fn without_underline(self) -> Self
pub const fn without_foreground(self) -> Self
pub const fn without_background(self) -> Self
pub fn coalesce(self, other: Self) -> Self
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 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