Enum embedded_text::rendering::ansi::Sgr[][src]

pub enum Sgr {
    Reset,
    Underline,
    CrossedOut,
    UnderlineOff,
    NotCrossedOut,
    ChangeTextColor(Rgb),
    DefaultTextColor,
    ChangeBackgroundColor(Rgb),
    DefaultBackgroundColor,
}

List of supported SGR (Select Graphics Rendition) sequences

Variants

Reset

Reset all styling options

Underline

Draw a line under the text

CrossedOut

Cross out the text

UnderlineOff

Disable drawing underline

NotCrossedOut

Disable crossing out

ChangeTextColor(Rgb)

Change the text color

DefaultTextColor

Reset the text color to transparent

ChangeBackgroundColor(Rgb)

Change the background color

DefaultBackgroundColor

Reset the background color to transparent

Trait Implementations

impl Clone for Sgr[src]

impl Copy for Sgr[src]

impl Debug for Sgr[src]

impl Eq 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> Same<T> for T

type Output = T

Should always be Self

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.