pub enum SGR {
}
Variants§
Reset
Bold
HalfBright
Underscore
Blink
Reverse
Underline
NormalIntensity
UnderlineOff
BlinkOff
ReverseOff
FG(Color)
Set foreground color
FG256(u8)
Set one of 256 colors; 0..15 are IGBR (black, red, green, … white); 16..231 a 6x6x6 color cube, 232..255 a grayscale ramp
FG24(u8, u8, u8)
Set 24-bit color, r/g/b components are in the range 0..255
DefaultFG
BG(Color)
Set background color
BG256(u8)
BG24(u8, u8, u8)
DefaultBG
FGB(Color)
Set foreground to bright versions of SGRColor
BGB(Color)
Set background color, same as BG (bright not supported)
Trait Implementations§
impl Copy for SGR
impl Eq for SGR
impl StructuralPartialEq for SGR
Auto Trait Implementations§
impl Freeze for SGR
impl RefUnwindSafe for SGR
impl Send for SGR
impl Sync for SGR
impl Unpin for SGR
impl UnwindSafe for SGR
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