Make ranges Clone and Copy
This commit is contained in:
parent
45c141c394
commit
782b46308a
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
//! Different ranges for numeric parameters.
|
//! Different ranges for numeric parameters.
|
||||||
|
|
||||||
/// A distribution for a floating point parameter's range. All range endpoints are inclusive.
|
/// A distribution for a floating point parameter's range. All range endpoints are inclusive.
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub enum FloatRange {
|
pub enum FloatRange {
|
||||||
/// The values are uniformly distributed between `min` and `max`.
|
/// The values are uniformly distributed between `min` and `max`.
|
||||||
Linear { min: f32, max: f32 },
|
Linear { min: f32, max: f32 },
|
||||||
|
|
Loading…
Add table
Reference in a new issue