Skip to content

Commit af0b63c

Browse files
authored
Merge pull request #558 from vpochapuis/add-basic-traits-derive
Add Clone and PartialEq traits to SeriesLabelPosition and ShapeStyle
2 parents b42a78e + 98a75a4 commit af0b63c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plotters/src/chart/series.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Useful to specify the position of the series label.
7272
7373
See [`ChartContext::configure_series_labels()`] for more information and examples.
7474
*/
75+
#[derive(Debug, Clone, PartialEq)]
7576
pub enum SeriesLabelPosition {
7677
/// Places the series label at the upper left
7778
UpperLeft,

plotters/src/style/shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::color::{Color, RGBAColor};
22
use plotters_backend::{BackendColor, BackendStyle};
33

44
/// Style for any shape
5-
#[derive(Copy, Clone)]
5+
#[derive(Copy, Clone, Debug, PartialEq)]
66
pub struct ShapeStyle {
77
/// Specification of the color.
88
pub color: RGBAColor,

0 commit comments

Comments
 (0)