Skip to content

Commit

Permalink
Merge pull request #558 from vpochapuis/add-basic-traits-derive
Browse files Browse the repository at this point in the history
Add Clone and PartialEq traits to SeriesLabelPosition and ShapeStyle
  • Loading branch information
AaronErhardt authored Mar 1, 2024
2 parents b42a78e + 98a75a4 commit af0b63c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plotters/src/chart/series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Useful to specify the position of the series label.
See [`ChartContext::configure_series_labels()`] for more information and examples.
*/
#[derive(Debug, Clone, PartialEq)]
pub enum SeriesLabelPosition {
/// Places the series label at the upper left
UpperLeft,
Expand Down
2 changes: 1 addition & 1 deletion plotters/src/style/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::color::{Color, RGBAColor};
use plotters_backend::{BackendColor, BackendStyle};

/// Style for any shape
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct ShapeStyle {
/// Specification of the color.
pub color: RGBAColor,
Expand Down

0 comments on commit af0b63c

Please sign in to comment.