pub enum Color {
Default,
Idx(u8),
Rgb(u8, u8, u8),
}
Expand description
Represents a foreground or background color for cells.
Variants§
Default
The default terminal color.
Idx(u8)
An indexed terminal color.
Rgb(u8, u8, u8)
An RGB terminal color. The parameters are (red, green, blue).
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
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
Mutably borrows from an owned value. Read more