Enum ncursesw::extend::Attribute [−][src]
pub enum Attribute {
Show 18 variants
Normal,
CharText,
Standout,
Underline,
Reverse,
Blink,
Dim,
Bold,
AlternativeCharSet,
Invisible,
Protected,
Horizontal,
Left,
Low,
Right,
Top,
Vertical,
Italic,
}
Variants
Normal
CharText
Standout
Underline
Reverse
Blink
Dim
Bold
AlternativeCharSet
Invisible
Protected
Horizontal
Left
Low
Right
Top
Vertical
Italic
Trait Implementations
Implement the | operator for combining two ’Attribute’s into Attributes
Example
let attributes = Attribute::Blink | Attribute::Reverse;
assert!(!attributes.is_bold());
assert!(attributes.is_blink());
assert!(attributes.is_reverse());
Implement the | operator for adding an Attribute to Attributes
Example
let mut attributes = Attributes::default();
assert!(!attributes.is_bold());
attributes = attributes | Attribute::Bold;
assert!(attributes.is_bold());
Implement the ^ operator for disabling an Attribute from Attributes
Example
let mut attributes = Attributes::from(Attribute::Bold);
assert!(attributes.is_bold());
attributes = attributes ^ Attribute::Bold;
assert!(!attributes.is_bold());
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl UnwindSafe for Attribute
Blanket Implementations
Mutably borrows from an owned value. Read more