pub enum Attribute {
Show 18 variants
Normal,
CharText,
Standout,
Underline,
Reverse,
Blink,
Dim,
Bold,
AlternativeCharSet,
Invisible,
Protected,
Horizontal,
Left,
Low,
Right,
Top,
Vertical,
Italic,
}Expand description
Terminal Attribute.
Variants§
Normal
Normal display (no highlight).
CharText
Bit-mask to extract a character.
Standout
Best highlighting mode of the terminal.
Underline
Underlining.
Reverse
Reverse video.
Blink
Blinking.
Dim
Half bright.
Bold
Extra bright or bold.
AlternativeCharSet
Alternate character set.
Invisible
Invisible or blank mode.
Protected
Protected mode.
Horizontal
Left
Low
Right
Top
Vertical
Italic
Italics.
Trait Implementations§
Source§impl BitOr<Attribute> for Attributes
Implement the | operator for adding an Attribute to Attributes
impl BitOr<Attribute> for Attributes
Implement the | operator for adding an Attribute to Attributes
Source§impl BitOr<Attribute> for ChtypeChar
impl BitOr<Attribute> for ChtypeChar
Source§impl BitOr<Attribute> for ChtypeString
impl BitOr<Attribute> for ChtypeString
Source§impl BitOr<ColorPair> for Attribute
Implement the | operator for combining a ColorPair and an Attribute to produce Attributes
impl BitOr<ColorPair> for Attribute
Implement the | operator for combining a ColorPair and an Attribute to produce Attributes
Source§impl BitOr for Attribute
Implement the | operator for combining two ’Attribute’s into Attributes
impl BitOr for Attribute
Implement the | operator for combining two ’Attribute’s into Attributes
Source§impl BitXor<Attribute> for Attributes
Implement the ^ operator for disabling an Attribute from Attributes
impl BitXor<Attribute> for Attributes
Implement the ^ operator for disabling an Attribute from Attributes
Source§impl BitXor<Attribute> for ChtypeChar
impl BitXor<Attribute> for ChtypeChar
Source§impl BitXor<Attribute> for ChtypeString
impl BitXor<Attribute> for ChtypeString
Source§impl From<Attribute> for Attributes
impl From<Attribute> for Attributes
Source§fn from(attribute: Attribute) -> Attributes
fn from(attribute: Attribute) -> Attributes
Converts to this type from the input type.
impl Copy for Attribute
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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