Struct git_config::values::Color [−][src]
pub struct Color {
pub foreground: Option<ColorValue>,
pub background: Option<ColorValue>,
pub attributes: Vec<ColorAttribute>,
}
Expand description
Any value that may contain a foreground color, background color, a collection of color (text) modifiers, or a combination of any of the aforementioned values.
Note that git-config
allows color values to simply be a collection of
ColorAttribute
s, and does not require a ColorValue
for either the
foreground or background color.
Fields
foreground: Option<ColorValue>
A provided foreground color
background: Option<ColorValue>
A provided background color
attributes: Vec<ColorAttribute>
A potentially empty list of text attributes
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more