Skip to content

Commit

Permalink
feat(evaluators): Make all evaluators Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 26, 2021
1 parent 71f5122 commit 4d5a512
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/evaluators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub trait Evaluator: std::fmt::Debug + Sync + Send {
/**
[`Evaluator`] for linear values. That is, there's no curve to the value mapping.
*/
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct LinearEvaluator {
xa: f32,
ya: f32,
Expand Down Expand Up @@ -56,7 +56,7 @@ impl Evaluator for LinearEvaluator {
/**
[`Evaluator`] with an exponent curve. The value will grow according to its `power` parameter.
*/
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct PowerEvaluator {
xa: f32,
ya: f32,
Expand Down Expand Up @@ -99,7 +99,7 @@ impl Evaluator for PowerEvaluator {
/**
[`Evaluator`] with a "Sigmoid", or "S-like" curve.
*/
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct SigmoidEvaluator {
xa: f32,
xb: f32,
Expand Down

0 comments on commit 4d5a512

Please sign in to comment.