pub enum Attribute {
Show 15 variants
Bold = 1,
Faint = 2,
Normal = 22,
Italic = 3,
ItalicOff = 23,
Underline = 4,
UnderlineOff = 24,
Blink = 5,
BlinkOff = 25,
Reverse = 7,
ReverseOff = 27,
Conceal = 8,
ConcealOff = 28,
Crossed = 9,
CrossedOff = 29,
}
Expand description
A display attribute.
This is NOT a full ANSI sequence. Attribute
must be used along with
the SetAttribute
.
§Examples
use std::io::{stdout, Write};
use anes::{Attribute, SetAttribute};
let mut stdout = stdout();
write!(stdout, "{}Bold text", SetAttribute(Attribute::Bold));
Variants§
Bold = 1
Bold (increased) intensity.
Faint = 2
Faint (decreased) intensity.
Normal = 22
Normal intensity (turns off Bold
and/or Faint
).
Italic = 3
Italic.
ItalicOff = 23
Turns off Italic
.
Underline = 4
Underlined text.
UnderlineOff = 24
Turns off Underline
.
Blink = 5
Blinking text.
BlinkOff = 25
Turns off blinking text (Blink
).
Reverse = 7
Reverse foreground & background colors.
ReverseOff = 27
Turns off Reverse
.
Conceal = 8
Concealed (hidden).
ConcealOff = 28
Turns off Conceal
.
Crossed = 9
Crossed.
CrossedOff = 29
Turns off Crossed
.
Trait Implementations§
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