pub enum Color<'a> {
Solid(SolidColor),
Pattern(&'a Pattern),
}Expand description
Represents a method used for operations that draw to the display or a bitmap.
Variants§
Solid(SolidColor)
A single color, which is one of SolidColor.
Pattern(&'a Pattern)
A reference to a 16 byte buffer, the first 8 bytes are 8x8 pixels (each pixel is 1 bit) and the last 8 bytes are 8x8 masks (each mask is 1 bit) that each defines if the corresponding pixel is used.
Trait Implementations§
Source§impl From<LCDSolidColor> for Color<'_>
impl From<LCDSolidColor> for Color<'_>
Source§fn from(color: SolidColor) -> Self
fn from(color: SolidColor) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Color<'a>
impl<'a> RefUnwindSafe for Color<'a>
impl<'a> Send for Color<'a>
impl<'a> Sync for Color<'a>
impl<'a> Unpin for Color<'a>
impl<'a> UnwindSafe for Color<'a>
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