Enum git_config::values::ColorValue
source · [−]pub enum ColorValue {
}
Expand description
Discriminating enum for Color
values.
git-config
supports the eight standard colors, their bright variants, an
ANSI color code, or a 24-bit hex value prefixed with an octothorpe.
Variants
Normal
Black
BrightBlack
Red
BrightRed
Green
BrightGreen
Yellow
BrightYellow
Blue
BrightBlue
Magenta
BrightMagenta
Cyan
BrightCyan
White
BrightWhite
Ansi(u8)
Rgb(u8, u8, u8)
Trait Implementations
sourceimpl Clone for ColorValue
impl Clone for ColorValue
sourcefn clone(&self) -> ColorValue
fn clone(&self) -> ColorValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColorValue
impl Debug for ColorValue
sourceimpl Display for ColorValue
impl Display for ColorValue
sourceimpl FromStr for ColorValue
impl FromStr for ColorValue
sourceimpl Hash for ColorValue
impl Hash for ColorValue
sourceimpl Ord for ColorValue
impl Ord for ColorValue
sourceimpl PartialEq<ColorValue> for ColorValue
impl PartialEq<ColorValue> for ColorValue
sourcefn eq(&self, other: &ColorValue) -> bool
fn eq(&self, other: &ColorValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ColorValue) -> bool
fn ne(&self, other: &ColorValue) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ColorValue> for ColorValue
impl PartialOrd<ColorValue> for ColorValue
sourcefn partial_cmp(&self, other: &ColorValue) -> Option<Ordering>
fn partial_cmp(&self, other: &ColorValue) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for ColorValue
impl Eq for ColorValue
impl StructuralEq for ColorValue
impl StructuralPartialEq for ColorValue
Auto Trait Implementations
impl RefUnwindSafe for ColorValue
impl Send for ColorValue
impl Sync for ColorValue
impl Unpin for ColorValue
impl UnwindSafe for ColorValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more