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
Default
Bold
Underline
BoldUnderline
Reverse
BoldReverse
UnderlineReverse
BoldReverseUnderline
Trait Implementations
impl Debug for Attr
[src]
impl Copy for Attr
[src]
impl Clone for Attr
[src]
fn clone(&self) -> Attr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Attr
[src]
fn eq(&self, __arg_0: &Attr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.