Enum rustty::Attr [] [src]

pub enum Attr {
    Default,
    Bold,
    Underline,
    BoldUnderline,
    Reverse,
    BoldReverse,
    UnderlineReverse,
    BoldReverseUnderline,
}

The attributes of a Cell.

Attr enumerates all combinations of attributes a given style may have.

Attr::Default represents no attribute.

Examples

use rustty::Attr;

// Default attribute.
let def = Attr::Default;

// Base attribute.
let base = Attr::Bold;

// Combination.
let comb = Attr::UnderlineReverse;

Variants

Trait Implementations

impl Debug for Attr
[src]

Formats the value using the given formatter.

impl Copy for Attr
[src]

impl Clone for Attr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Attr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Attr
[src]