pub enum Colour {
Default,
Rgb(u8, u8, u8),
Indexed(u8),
Theme(ThemeSlot),
}Expand description
A cell colour. Encoded in the buffer as a u32 whose top byte is the
model:
| Word | Colour |
|---|---|
0x00______ | Colour::Default: theme text, or a transparent background |
0x01RRGGBB | Colour::Rgb |
0x020000II | Colour::Indexed: terminal palette index |
0x030000TT | Colour::Theme: a ThemeSlot |
Variants§
Implementations§
Trait Implementations§
impl Copy for Colour
impl Eq for Colour
impl StructuralPartialEq for Colour
Auto Trait Implementations§
impl Freeze for Colour
impl RefUnwindSafe for Colour
impl Send for Colour
impl Sync for Colour
impl Unpin for Colour
impl UnsafeUnpin for Colour
impl UnwindSafe for Colour
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