pub enum VisualAttribute {
Show 27 variants
Bold,
Faint,
Italic,
Underline,
SlowBlink,
RapidBlink,
Inverse,
Hide,
Crossedout,
Font(u8),
Fraktur,
DoubleUnderline,
ProportionalSpacing,
FgColor(AnsiColor),
BgColor(AnsiColor),
UndrColor(AnsiColor),
Framed,
Encircled,
Overlined,
IgrmUnderline,
IgrmDoubleUnderline,
IgrmOverline,
IgrmdDoubleOverline,
IgrmStressMarking,
Superscript,
Subscript,
Reset(u8),
}
Expand description
An attribute of Select Graphic Rendition(SGR)
Variants§
Bold
A bold.
Faint
A faint.
Italic
An italic.
Underline
An underline.
SlowBlink
A slow blink.
RapidBlink
A rapid blink.
Inverse
Reverse video or invert.
Hide
Conceal or hide.
Crossedout
Crossed-out, or strike.
Font(u8)
A font.
A value is in range 10..=19
Fraktur
A fraktur (gothic)
DoubleUnderline
Doubly underlined; or: not bold.
ProportionalSpacing
A proportional spacing.
FgColor(AnsiColor)
A foreground color.
BgColor(AnsiColor)
A background color.
UndrColor(AnsiColor)
An underground color.
Framed
A framed.
Encircled
An encircled.
Overlined
An overlined.
IgrmUnderline
Ideogram underline or right side line.
IgrmDoubleUnderline
Ideogram double underline, or double line on the right side.
IgrmOverline
Ideogram overline or left side line.
IgrmdDoubleOverline
Ideogram double overline, or double line on the left side.
IgrmStressMarking
Ideogram stress marking.
Superscript
Superscript.
Subscript
Subscript.
Reset(u8)
Bold.
Implementations§
Trait Implementations§
Source§impl Clone for VisualAttribute
impl Clone for VisualAttribute
Source§fn clone(&self) -> VisualAttribute
fn clone(&self) -> VisualAttribute
Returns a copy of the value. Read more
1.0.0 · 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 VisualAttribute
impl Debug for VisualAttribute
Source§impl Display for VisualAttribute
impl Display for VisualAttribute
Source§impl Hash for VisualAttribute
impl Hash for VisualAttribute
Source§impl Ord for VisualAttribute
impl Ord for VisualAttribute
Source§fn cmp(&self, other: &VisualAttribute) -> Ordering
fn cmp(&self, other: &VisualAttribute) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VisualAttribute
impl PartialEq for VisualAttribute
Source§impl PartialOrd for VisualAttribute
impl PartialOrd for VisualAttribute
impl Copy for VisualAttribute
impl Eq for VisualAttribute
impl StructuralPartialEq for VisualAttribute
Auto Trait Implementations§
impl Freeze for VisualAttribute
impl RefUnwindSafe for VisualAttribute
impl Send for VisualAttribute
impl Sync for VisualAttribute
impl Unpin for VisualAttribute
impl UnwindSafe for VisualAttribute
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