Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive Clone impl for ranged combinators #642

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plotters/src/coord/ranged1d/combinators/ckps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::coord::ranged1d::{AsRangedCoord, DiscreteRanged, KeyPointHint, Ranged
/// for details.
/// Note: For any coordinate spec wrapped by this decorator, the maximum number of labels configured by
/// MeshStyle will be ignored and the key point function will always returns the entire vector
#[derive(Clone)]
pub struct WithKeyPoints<Inner: Ranged> {
inner: Inner,
bold_points: Vec<Inner::ValueType>,
Expand Down
1 change: 1 addition & 0 deletions plotters/src/coord/ranged1d/combinators/logarithmic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ impl<V: LogScalable> AsRangedCoord for LogRangeExt<V> {
}

/// A log scaled coordinate axis
#[derive(Clone)]
pub struct LogCoord<V: LogScalable> {
linear: RangedCoordf64,
logic: Range<V>,
Expand Down
1 change: 1 addition & 0 deletions plotters/src/coord/ranged1d/combinators/nested.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ impl<C, V> From<C> for NestedValue<C, V> {
/// for each value in discrete value, there is a secondary coordinate system.
/// And the value is defined as a tuple of primary coordinate value and secondary
/// coordinate value
#[derive(Clone)]
pub struct NestedRange<Primary: DiscreteRanged, Secondary: Ranged> {
primary: Primary,
secondary: Vec<Secondary>,
Expand Down
Loading