Repository: plotters-rs/plotters (language: rust)

Issue:
[Feature Request] Derive Copy for HSLColor
### What is the feature ?

Please, derive `Copy` (and, by extension, `Clone`) for `HSLColor`.

### Why this feature is useful and how people would use the feature ?

Currently, manipulating `HSLColor` is a burden, specially if it happens to be the type of a field of some struct. My entire struct looses the ability to be copied (or even cloned!). And it's completely unnecessary, given that `HSLColor` is a simple `struct` with just 3 `f64`.

Thanks in advance!


Discussion / hints:

Fix patch:
diff --git a/src/style/color.rs b/src/style/color.rs
index cfdf9b92..2c01d4a1 100644
--- a/src/style/color.rs
+++ b/src/style/color.rs
@@ -77,6 +77,7 @@ impl Color for RGBAColor {
 }
 
 /// A color in the given palette
+#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, Default)]
 pub struct PaletteColor<P: Palette>(usize, PhantomData<P>);
 
 impl<P: Palette> PaletteColor<P> {
@@ -122,6 +123,7 @@ impl BackendStyle for RGBColor {
 }
 
 /// The color described by HSL color space
+#[derive(Copy, Clone, PartialEq, Debug, Default)]
 pub struct HSLColor(pub f64, pub f64, pub f64);
 
 impl Color for HSLColor {


Test patch: