pub struct Style {
pub fg: Option<Color>,
pub bg: Option<Color>,
pub bold: bool,
pub dim: bool,
pub italic: bool,
pub underline: bool,
pub crossedout: bool,
pub reverse: bool,
}Fields§
§fg: Option<Color>§bg: Option<Color>§bold: bool§dim: bool§italic: bool§underline: bool§crossedout: bool§reverse: boolImplementations§
Source§impl Style
impl Style
pub const fn new() -> Style
pub fn fg(self, color: Color) -> Style
pub fn bg(self, color: Color) -> Style
pub fn bold(self) -> Style
pub fn dim(self) -> Style
pub fn italic(self) -> Style
pub fn underline(self) -> Style
pub fn crossedout(self) -> Style
pub fn reverse(self) -> Style
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