Enum git_config::values::ColorAttribute
source · [−]pub enum ColorAttribute {
Show 14 variants
Bold,
NoBold,
Dim,
NoDim,
Ul,
NoUl,
Blink,
NoBlink,
Reverse,
NoReverse,
Italic,
NoItalic,
Strike,
NoStrike,
}
Expand description
Discriminating enum for Color
attributes.
git-config
supports modifiers and their negators. The negating color
attributes are equivalent to having a no
or no-
prefix to the normal
variant.
Variants
Bold
NoBold
Dim
NoDim
Ul
NoUl
Blink
NoBlink
Reverse
NoReverse
Italic
NoItalic
Strike
NoStrike
Trait Implementations
sourceimpl Clone for ColorAttribute
impl Clone for ColorAttribute
sourcefn clone(&self) -> ColorAttribute
fn clone(&self) -> ColorAttribute
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 ColorAttribute
impl Debug for ColorAttribute
sourceimpl Display for ColorAttribute
impl Display for ColorAttribute
sourceimpl FromStr for ColorAttribute
impl FromStr for ColorAttribute
sourceimpl Hash for ColorAttribute
impl Hash for ColorAttribute
sourceimpl Ord for ColorAttribute
impl Ord for ColorAttribute
sourceimpl PartialEq<ColorAttribute> for ColorAttribute
impl PartialEq<ColorAttribute> for ColorAttribute
sourceimpl PartialOrd<ColorAttribute> for ColorAttribute
impl PartialOrd<ColorAttribute> for ColorAttribute
sourcefn partial_cmp(&self, other: &ColorAttribute) -> Option<Ordering>
fn partial_cmp(&self, other: &ColorAttribute) -> 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 ColorAttribute
impl Eq for ColorAttribute
impl StructuralEq for ColorAttribute
impl StructuralPartialEq for ColorAttribute
Auto Trait Implementations
impl RefUnwindSafe for ColorAttribute
impl Send for ColorAttribute
impl Sync for ColorAttribute
impl Unpin for ColorAttribute
impl UnwindSafe for ColorAttribute
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more