Skip to content

Commit

Permalink
added clone to Evaluator trait (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: doomy <2640792-_doomy@users.noreply.gitlab.com>
  • Loading branch information
piedoom and doomy committed Apr 26, 2021
1 parent 07b60ed commit db52b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Utilities for turning values within a certain range into different curves.
/**
Trait that any evaluators must implement. Must return an `f32` value between `0.0..=100.0`.
*/
pub trait Evaluator: std::fmt::Debug + Sync + Send {
pub trait Evaluator: std::fmt::Debug + Sync + Send + Clone {
fn evaluate(&self, value: f32) -> f32;
}

Expand Down

0 comments on commit db52b7c

Please sign in to comment.