Enum console_codes::SGR[][src]

pub enum SGR {
    Reset,
    Bold,
    HalfBright,
    Underscore,
    Blink,
    Reverse,
    Underline,
    NormalIntensity,
    UnderlineOff,
    BlinkOff,
    ReverseOff,
    FG(Color),
    FG256(u8),
    FG24(u8u8u8),
    DefaultFG,
    BG(Color),
    BG256(u8),
    BG24(u8u8u8),
    DefaultBG,
    FGB(Color),
    BGB(Color),
}

Variants

Reset
Bold
HalfBright
Underscore
Reverse
Underline
NormalIntensity
UnderlineOff
BlinkOff
ReverseOff
FG(Color)

Set foreground color

FG256(u8)

Set one of 256 colors; 0..15 are IGBR (black, red, green, … white); 16..231 a 6x6x6 color cube, 232..255 a grayscale ramp

FG24(u8u8u8)

Set 24-bit color, r/g/b components are in the range 0..255

DefaultFG
BG(Color)

Set background color

BG256(u8)
BG24(u8u8u8)
DefaultBG
FGB(Color)

Set foreground to bright versions of SGRColor

BGB(Color)

Set background color, same as BG (bright not supported)

Trait Implementations

impl Clone for SGR[src]

impl Copy for SGR[src]

impl Debug for SGR[src]

impl Eq for SGR[src]

impl Into<Vec<u16, Global>> for SGR[src]

impl PartialEq<SGR> for SGR[src]

impl StructuralEq for SGR[src]

impl StructuralPartialEq for SGR[src]

Auto Trait Implementations

impl RefUnwindSafe for SGR

impl Send for SGR

impl Sync for SGR

impl Unpin for SGR

impl UnwindSafe for SGR

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.