#[repr(transparent)]pub struct ColorID(pub u8);
Expand description
Names a color within curses.
This is not an actual RGB color value. It’s just an index into a color palette.
- Assuming that a terminal supports color at all, you usually get at least 8 palette slots.
- The linux console generally has only 8 colors, but terminal emulators often have far more.
This type has some associated constants. Each constant names the id value that is most likely to display as that color by default.
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
impl Copy for ColorID
impl Eq for ColorID
impl StructuralPartialEq for ColorID
Auto Trait Implementations§
impl Freeze for ColorID
impl RefUnwindSafe for ColorID
impl Send for ColorID
impl Sync for ColorID
impl Unpin for ColorID
impl UnwindSafe for ColorID
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