pub struct EightBitColor(/* private fields */);Expand description
An 8 Bit color Uses values 0-255
Trait Implementations§
Source§impl Clone for EightBitColor
impl Clone for EightBitColor
Source§fn clone(&self) -> EightBitColor
fn clone(&self) -> EightBitColor
Returns a duplicate 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 EightBitColor
impl Debug for EightBitColor
Source§impl Display for EightBitColor
impl Display for EightBitColor
Source§impl DisplayColor for EightBitColor
impl DisplayColor for EightBitColor
Source§fn fmt_background(&self, f: &mut Formatter<'_>) -> Result
fn fmt_background(&self, f: &mut Formatter<'_>) -> Result
Formats the ansi escape code for the background
On the True Color and Eight Bit it will be the Format
\x1b[48;{}m on the four bit it will use the \x1b[{}m Read moreSource§fn fmt_color(&self, f: &mut Formatter<'_>) -> Result
fn fmt_color(&self, f: &mut Formatter<'_>) -> Result
Formats the ansi escape code for the normal color
On the True Color and Eight Bit it will be the Format
\x1b[38;{}m on the four bit it will use the \x1b[{}m Read moreSource§fn background_color(&self) -> String
fn background_color(&self) -> String
Creates the ANSI escape code as a string
Source§impl From<EightBitColor> for Color
impl From<EightBitColor> for Color
Source§fn from(color: EightBitColor) -> Self
fn from(color: EightBitColor) -> Self
Converts to this type from the input type.
Source§impl From<u8> for EightBitColor
impl From<u8> for EightBitColor
Auto Trait Implementations§
impl Freeze for EightBitColor
impl RefUnwindSafe for EightBitColor
impl Send for EightBitColor
impl Sync for EightBitColor
impl Unpin for EightBitColor
impl UnwindSafe for EightBitColor
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