pub enum Color {
}Expand description
A SGR color code
Variants§
BlackFg
Represents the SGR code 30
RedFg
Represents the SGR code 31
GreenFg
Represents the SGR code 32
YellowFg
Represents the SGR code 33
BlueFg
Represents the SGR code 34
MagentaFg
Represents the SGR code 35
CyanFg
Represents the SGR code 36
WhiteFg
Represents the SGR code 37
ByteFg(u8)
Represents the SGR codes 38;2;<n>
Where <n> is an 8 bit color
RgbFg(u8, u8, u8)
Represents the SGR codes 38;2;<n1>;<n2>;<n3>
Where <n1>,<n2>,<n3> are 8 bit colors
DefaultFg
Represents the SGR code 39
BlackBg
Represents the SGR code 40
RedBg
Represents the SGR code 41
GreenBg
Represents the SGR code 42
YellowBg
Represents the SGR code 43
BlueBg
Represents the SGR code 44
MagentaBg
Represents the SGR code 45
CyanBg
Represents the SGR code 46
WhiteBg
Represents the SGR code 47
ByteBg(u8)
Represents the SGR codes 48;2;<n>
Where <n> is an 8 bit color
RgbBg(u8, u8, u8)
Represents the SGR codes 38;2;<n1>;<n2>;<n3>
Where <n1>,<n2>,<n3> are 8 bit colors
DefaultBg
Represents the SGR code 49
Trait Implementations§
source§impl DiscreteSGR for Color
impl DiscreteSGR for Color
Auto Trait Implementations§
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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
source§impl<I> EasySGR for Iwhere
I: Into<SGRString>,
impl<I> EasySGR for Iwhere I: Into<SGRString>,
source§fn text(self, text: impl Into<String>) -> SGRString
fn text(self, text: impl Into<String>) -> SGRString
SGRString source§fn color(self, color: impl Into<Color>) -> SGRString
fn color(self, color: impl Into<Color>) -> SGRString
SGRString source§impl<W, D> EasyWrite<W> for Dwhere
W: SGRWriter,
D: DiscreteSGR,
impl<W, D> EasyWrite<W> for Dwhere W: SGRWriter, D: DiscreteSGR,
source§fn sgr(&self, builder: &mut SGRBuilder<'_, W>)
fn sgr(&self, builder: &mut SGRBuilder<'_, W>)
Writes a set of codes to the builder
Uses DiscreteSGR::write