Struct gix_config::Color
source · pub struct Color {
pub foreground: Option<Name>,
pub background: Option<Name>,
pub attributes: Attribute,
}
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, like red
or brightgreen
.
Note that gix-config
allows color values to simply be a collection of
color::Attribute
s, and does not require a color::Name
for either the
foreground or background color.
Fields§
§foreground: Option<Name>
A provided foreground color
background: Option<Name>
A provided background color
attributes: Attribute
A potentially empty set of text attributes
Trait Implementations§
source§impl Ord for Color
impl Ord for Color
source§impl PartialEq<Color> for Color
impl PartialEq<Color> for Color
source§impl PartialOrd<Color> for Color
impl PartialOrd<Color> for Color
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more