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 git-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 PartialOrd for Color
impl PartialOrd for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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