pub struct Style {
pub fg: Option<Color>,
pub bold: bool,
}Fields§
§fg: Option<Color>§bold: boolImplementations§
Source§impl Style
impl Style
pub fn new() -> Style
pub fn blue(self) -> Style
pub fn bright_black(self) -> Style
pub fn cyan(self) -> Style
pub fn green(self) -> Style
pub fn magenta(self) -> Style
pub fn purple(self) -> Style
pub fn red(self) -> Style
pub fn yellow(self) -> Style
pub fn bold(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 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