Require all parameters to have a Display instance
So their value can be easily formatted in UIs.
This commit is contained in:
parent
87b31f4c2f
commit
b61d17fee9
|
@ -29,8 +29,8 @@ pub mod smoothing;
|
|||
pub type FloatParam = PlainParam<f32>;
|
||||
pub type IntParam = PlainParam<i32>;
|
||||
|
||||
/// Describes a single parmaetre of any type.
|
||||
pub trait Param {
|
||||
/// Describes a single parameter of any type.
|
||||
pub trait Param: Display {
|
||||
/// The plain parameter type.
|
||||
type Plain;
|
||||
|
||||
|
|
Loading…
Reference in a new issue