Skip to content

Commit 1f174c8

Browse files
authored
Merge pull request #642 from alexmoon/ranged-clone
Derive `Clone` impl for ranged combinators
2 parents dbc2a3a + e4d660a commit 1f174c8

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

plotters/src/coord/ranged1d/combinators/ckps.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use crate::coord::ranged1d::{AsRangedCoord, DiscreteRanged, KeyPointHint, Ranged
1313
/// for details.
1414
/// Note: For any coordinate spec wrapped by this decorator, the maximum number of labels configured by
1515
/// MeshStyle will be ignored and the key point function will always returns the entire vector
16+
#[derive(Clone)]
1617
pub struct WithKeyPoints<Inner: Ranged> {
1718
inner: Inner,
1819
bold_points: Vec<Inner::ValueType>,

plotters/src/coord/ranged1d/combinators/logarithmic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ impl<V: LogScalable> AsRangedCoord for LogRangeExt<V> {
151151
}
152152

153153
/// A log scaled coordinate axis
154+
#[derive(Clone)]
154155
pub struct LogCoord<V: LogScalable> {
155156
linear: RangedCoordf64,
156157
logic: Range<V>,

plotters/src/coord/ranged1d/combinators/nested.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ impl<C, V> From<C> for NestedValue<C, V> {
4545
/// for each value in discrete value, there is a secondary coordinate system.
4646
/// And the value is defined as a tuple of primary coordinate value and secondary
4747
/// coordinate value
48+
#[derive(Clone)]
4849
pub struct NestedRange<Primary: DiscreteRanged, Secondary: Ranged> {
4950
primary: Primary,
5051
secondary: Vec<Secondary>,

0 commit comments

Comments
 (0)