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
sourceimpl BitOr<Attribute> for Attribute
impl BitOr<Attribute> for Attribute
Implement the | operator for combining two ’Attribute’s into Attributes
sourceimpl BitOr<Attribute> for Attributes
impl BitOr<Attribute> for Attributes
Implement the | operator for adding an Attribute to Attributes
sourceimpl BitXor<Attribute> for Attributes
impl BitXor<Attribute> for Attributes
Implement the ^ operator for disabling an Attribute from Attributes
sourceimpl From<Attribute> for Attributes
impl From<Attribute> for Attributes
impl Copy for Attribute
impl Eq for Attribute
impl StructuralEq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more