[][src]Enum anes::Attribute

pub enum Attribute {
    Bold,
    Faint,
    Normal,
    Italic,
    ItalicOff,
    Underline,
    UnderlineOff,
    Blink,
    BlinkOff,
    Reverse,
    ReverseOff,
    Conceal,
    ConcealOff,
    Crossed,
    CrossedOff,
}

A display attribute.

This is NOT a full ANSI sequence. Attribute must be used along with the SetAttribute.

Examples

use std::io::{stdout, Write};
use anes::{Attribute, SetAttribute};

let mut stdout = stdout();
write!(stdout, "{}Bold text", SetAttribute(Attribute::Bold));

Variants

Bold

Bold (increased) intensity.

Faint

Faint (decreased) intensity.

Normal

Normal intensity (turns off Bold and/or Faint).

Italic

Italic.

ItalicOff

Turns off Italic.

Underline

Underlined text.

UnderlineOff

Turns off Underline.

Blinking text.

BlinkOff

Turns off blinking text (Blink).

Reverse

Reverse foreground & background colors.

ReverseOff

Turns off Reverse.

Conceal

Concealed (hidden).

ConcealOff

Turns off Conceal.

Crossed

Crossed.

CrossedOff

Turns off Crossed.

Trait Implementations

impl Clone for Attribute[src]

impl Copy for Attribute[src]

impl Eq for Attribute[src]

impl PartialEq<Attribute> for Attribute[src]

impl Display for Attribute[src]

impl Debug for Attribute[src]

impl Hash for Attribute[src]

impl StructuralPartialEq for Attribute[src]

impl StructuralEq for Attribute[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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

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

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