pub struct Palette {
pub heading: &'static str,
pub option: &'static str,
pub metavar: &'static str,
pub command: &'static str,
}Expand description
Semantic colours for a help page, named in the same vocabulary as {$…} tags.
Each field is a style specification ("cyan+bold", "heading", "bright-cyan").
Role names expand once: mapping metavar to "heading" uses the built-in
heading colour, not a remapped heading. The renderer still writes SGR directly.
Fields§
§heading: &'static strHeadings such as Usage: and Options:. Default "heading" (yellow + bold).
option: &'static strFlag and option literals. Default "option" (green + bold).
metavar: &'static strMetavariables such as <FILE>. Default "metavar" (magenta + bold).
command: &'static strSubcommand names. Default "command" (green + bold).
Implementations§
Trait Implementations§
impl Copy for Palette
impl Eq for Palette
impl StructuralPartialEq for Palette
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
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