[−][src]Enum text_style::AnsiColor
An ANSI base color.
This enum contains the basic eight ANSI colors. These colors are available in two modes:
Dark
and Light
. Combinations of an ANSI color and a mode are stored in the
Color
enum.
Variants
Black (ANSI color #0 (dark) or #8 (light)).
Red (ANSI color #1 (dark) or #9 (light)).
Green (ANSI color #2 (dark) or #10 (light)).
Yellow (ANSI color #3 (dark) or #11 (light)).
Blue (ANSI color #4 (dark) or #12 (light)).
Magenta (ANSI color #5 (dark) or #13 (light)).
Cyan (ANSI color #6 (dark) or #14 (light)).
White (ANSI color #7 (dark) or #15 (light)).
Implementations
impl AnsiColor
[src]
pub fn dark(self) -> Color
[src]
Returns the dark variant of this ANSI color.
pub fn light(self) -> Color
[src]
Returns the light variant of this ANSI color.
Trait Implementations
impl Clone for AnsiColor
[src]
impl Copy for AnsiColor
[src]
impl Debug for AnsiColor
[src]
impl From<AnsiColor> for BaseColor
[src]
impl PartialEq<AnsiColor> for AnsiColor
[src]
impl StructuralPartialEq for AnsiColor
[src]
Auto Trait Implementations
impl RefUnwindSafe for AnsiColor
impl Send for AnsiColor
impl Sync for AnsiColor
impl Unpin for AnsiColor
impl UnwindSafe for AnsiColor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.