1
0
Fork 0

Require all parameters to have a Display instance

So their value can be easily formatted in UIs.
This commit is contained in:
Robbert van der Helm 2022-02-09 19:45:16 +01:00
parent 87b31f4c2f
commit b61d17fee9

View file

@ -29,8 +29,8 @@ pub mod smoothing;
pub type FloatParam = PlainParam<f32>; pub type FloatParam = PlainParam<f32>;
pub type IntParam = PlainParam<i32>; pub type IntParam = PlainParam<i32>;
/// Describes a single parmaetre of any type. /// Describes a single parameter of any type.
pub trait Param { pub trait Param: Display {
/// The plain parameter type. /// The plain parameter type.
type Plain; type Plain;