pub enum TextAttribute {
Bold,
Dim,
Italic,
SlowBlink,
RapidBlink,
Reversed,
Hidden,
CrossedOut,
Fraktur,
Framed,
Encircled,
Overlined,
}Expand description
One independently selectable terminal text attribute.
Variants§
Trait Implementations§
Source§impl BitOr<TextAttribute> for TextAttributes
impl BitOr<TextAttribute> for TextAttributes
Source§type Output = TextAttributes
type Output = TextAttributes
The resulting type after applying the
| operator.Source§impl BitOr for TextAttribute
impl BitOr for TextAttribute
Source§impl Clone for TextAttribute
impl Clone for TextAttribute
Source§fn clone(&self) -> TextAttribute
fn clone(&self) -> TextAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextAttribute
impl Debug for TextAttribute
Source§impl From<TextAttribute> for TextAttributes
impl From<TextAttribute> for TextAttributes
Source§fn from(attribute: TextAttribute) -> Self
fn from(attribute: TextAttribute) -> Self
Converts to this type from the input type.
Source§impl Hash for TextAttribute
impl Hash for TextAttribute
Source§impl PartialEq for TextAttribute
impl PartialEq for TextAttribute
Source§fn eq(&self, other: &TextAttribute) -> bool
fn eq(&self, other: &TextAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TextAttribute
impl Eq for TextAttribute
impl StructuralPartialEq for TextAttribute
Auto Trait Implementations§
impl Freeze for TextAttribute
impl RefUnwindSafe for TextAttribute
impl Send for TextAttribute
impl Sync for TextAttribute
impl Unpin for TextAttribute
impl UnsafeUnpin for TextAttribute
impl UnwindSafe for TextAttribute
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