pub struct Color { /* private fields */ }Expand description
An ANSI TrueColor (24-bit) pixel.
Each Color stores an RGB value that will be rendered using ANSI escape
codes in the terminal.
Implementations§
Trait Implementations§
impl Copy for Color
impl Eq for Color
Source§impl Ord for Color
impl Ord for Color
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Color
impl PartialOrd for Color
Source§impl Pixel for Color
impl Pixel for Color
Source§type Canvas = CanvasAnsi
type Canvas = CanvasAnsi
The type that stores an intermediate buffer before finalizing to a
concrete image
Source§fn default_unit_size() -> (u32, u32)
fn default_unit_size() -> (u32, u32)
Obtains the default module size. The result must be at least 1×1.
Source§fn default_color(color: ModuleColor) -> Self
fn default_color(color: ModuleColor) -> Self
Obtains the default pixel color when a module is dark or light.
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 UnsafeUnpin 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