pub struct Style {
pub palette: Palette,
pub depth: Depth,
}Expand description
Fields§
§palette: PaletteThe paint for each kind of text.
depth: DepthWhat the terminal shows; colors deeper than this are mapped down.
Implementations§
Source§impl Style
impl Style
Sourcepub const COLORED: Style
pub const COLORED: Style
Palette::DEFAULT in the 16 basic colors.
Sourcepub const CLAP: Style
pub const CLAP: Style
Palette::CLAP: bold and underline in help, color only in errors.
Sourcepub fn auto() -> Style
pub fn auto() -> Style
Theme::DEFAULT for standard output, at the depth
Depth::detect finds.
Sourcepub fn auto_stderr() -> Style
pub fn auto_stderr() -> Style
Style::auto for standard error, where errors go.
Sourcepub fn auto_for(is_terminal: bool) -> Style
pub fn auto_for(is_terminal: bool) -> Style
Theme::DEFAULT for a stream that is (or is not) a terminal.
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