Enum ansitok::VisualAttribute
source · [−]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
sourceimpl Clone for VisualAttribute
impl Clone for VisualAttribute
sourcefn clone(&self) -> VisualAttribute
fn clone(&self) -> VisualAttribute
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VisualAttribute
impl Debug for VisualAttribute
sourceimpl Display for VisualAttribute
impl Display for VisualAttribute
sourceimpl Hash for VisualAttribute
impl Hash for VisualAttribute
sourceimpl Ord for VisualAttribute
impl Ord for VisualAttribute
sourcefn cmp(&self, other: &VisualAttribute) -> Ordering
fn cmp(&self, other: &VisualAttribute) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<VisualAttribute> for VisualAttribute
impl PartialEq<VisualAttribute> for VisualAttribute
sourcefn eq(&self, other: &VisualAttribute) -> bool
fn eq(&self, other: &VisualAttribute) -> bool
sourceimpl PartialOrd<VisualAttribute> for VisualAttribute
impl PartialOrd<VisualAttribute> for VisualAttribute
sourcefn partial_cmp(&self, other: &VisualAttribute) -> Option<Ordering>
fn partial_cmp(&self, other: &VisualAttribute) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for VisualAttribute
impl Eq for VisualAttribute
impl StructuralEq for VisualAttribute
impl StructuralPartialEq for VisualAttribute
Auto Trait Implementations
impl RefUnwindSafe for VisualAttribute
impl Send for VisualAttribute
impl Sync for VisualAttribute
impl Unpin for VisualAttribute
impl UnwindSafe for VisualAttribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more