pub enum ColorSpec {
Default,
PaletteIndex(PaletteIndex),
TrueColor(SrgbaTuple),
}Expand description
Specifies the color to be used when rendering a cell.
This differs from ColorAttribute in that this type can only
specify one of the possible color types at once, whereas the
ColorAttribute type can specify a TrueColor value and a fallback.
Variants§
Default
PaletteIndex(PaletteIndex)
Use either a raw number, or use values from the AnsiColor enum
TrueColor(SrgbaTuple)
Trait Implementations§
Source§impl From<ColorSpec> for ColorAttribute
impl From<ColorSpec> for ColorAttribute
Source§impl From<SrgbaTuple> for ColorSpec
impl From<SrgbaTuple> for ColorSpec
Source§fn from(col: SrgbaTuple) -> Self
fn from(col: SrgbaTuple) -> Self
Converts to this type from the input type.
impl Copy for ColorSpec
impl Eq for ColorSpec
impl StructuralPartialEq for ColorSpec
Auto Trait Implementations§
impl Freeze for ColorSpec
impl RefUnwindSafe for ColorSpec
impl Send for ColorSpec
impl Sync for ColorSpec
impl Unpin for ColorSpec
impl UnwindSafe for ColorSpec
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