Enum ansi_to_tui::AnsiCode[][src]

#[repr(u8)]
pub enum AnsiCode {
Show variants Reset, Bold, Faint, Italic, Underline, SlowBlink, RapidBlink, Reverse, Conceal, CrossedOut, PrimaryFont, AlternateFont, AlternateFonts(u8), Fraktur, BoldOff, Normal, NotItalic, UnderlineOff, BlinkOff, InvertOff, Reveal, CrossedOutOff, ForegroundColor(AnsiColor), SetForegroundColor, DefaultForegroundColor, BackgroundColor(AnsiColor), SetBackgroundColor, DefaultBackgroundColor,
}

This enum stores most types of ansi escape sequences

You can turn an escape sequence to this enum variant using from(u8) trait.
This doesn’t support all of them but does support most of them.

Variants

Reset
Bold
Faint
Italic
Underline
Reverse
Conceal
CrossedOut
PrimaryFont
AlternateFont
AlternateFonts(u8)
Fraktur
BoldOff
Normal
NotItalic
UnderlineOff
BlinkOff
InvertOff
Reveal
CrossedOutOff
ForegroundColor(AnsiColor)
SetForegroundColor
DefaultForegroundColor
BackgroundColor(AnsiColor)
SetBackgroundColor
DefaultBackgroundColor

Trait Implementations

impl Debug for AnsiCode[src]

impl From<u8> for AnsiCode[src]

impl PartialEq<AnsiCode> for AnsiCode[src]

impl StructuralPartialEq for AnsiCode[src]

Auto Trait Implementations

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, 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.