pub enum Attr {
Default = 0,
Bold = 1,
Underline = 2,
BoldUnderline = 3,
Reverse = 4,
BoldReverse = 5,
UnderlineReverse = 6,
BoldReverseUnderline = 7,
}Expand description
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 = 0
Bold = 1
Underline = 2
BoldUnderline = 3
Reverse = 4
BoldReverse = 5
UnderlineReverse = 6
BoldReverseUnderline = 7
Trait Implementations§
impl Copy for Attr
impl Eq for Attr
impl StructuralPartialEq for Attr
Auto Trait Implementations§
impl Freeze for Attr
impl RefUnwindSafe for Attr
impl Send for Attr
impl Sync for Attr
impl Unpin for Attr
impl UnwindSafe for Attr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more