Skip to content

Commit dea6af1

Browse files
committed
Implement Debug for the colors
1 parent bab198b commit dea6af1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/colors/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl Color for f64 {
6666
/// Remark: The colors green, cyan, magenta, and yellow do not
6767
/// coincide with X11/CSS4 colors. Their particular shades were chosen
6868
/// for better visibility of colored lines against typical backgrounds.
69-
#[derive(Clone, Copy)]
69+
#[derive(Clone, Copy, Debug)]
7070
pub enum Base {
7171
/// Blue
7272
B,
@@ -102,7 +102,7 @@ impl Color for Base {
102102
}
103103

104104
/// The [Tableau Palette](https://matplotlib.org/stable/gallery/color/named_colors.html#tableau-palette).
105-
#[derive(Clone, Copy)]
105+
#[derive(Clone, Copy, Debug)]
106106
pub enum Tab {
107107
Blue,
108108
Orange,
@@ -134,7 +134,7 @@ impl Color for Tab {
134134
}
135135
}
136136

137-
#[derive(Clone, Copy)]
137+
#[derive(Clone, Copy, Debug)]
138138
pub enum CSS4 {
139139
AcidGreen,
140140
Adobe,
@@ -2049,7 +2049,7 @@ impl Color for CSS4 {
20492049
/// It is a collection of the 954 most common RGB monitor colors, as
20502050
/// defined by several hundred thousand participants in the xkcd color
20512051
/// name survey.
2052-
#[derive(Clone, Copy)]
2052+
#[derive(Clone, Copy, Debug)]
20532053
pub enum Xkcd {
20542054
AcidGreen,
20552055
Adobe,

0 commit comments

Comments
 (0)