1
0
Fork 0

Add a todo for adding builders to parameters

This commit is contained in:
Robbert van der Helm 2022-02-10 01:21:07 +01:00
parent da8f4c20cf
commit 8934d06381

View file

@ -29,6 +29,10 @@ pub mod smoothing;
pub type FloatParam = PlainParam<f32>;
pub type IntParam = PlainParam<i32>;
// TODO: Instead of having just structs with public fields and a Default instance, consider also
// adding `new` functions that take just the essentials (name, default value, range) and then
// have builders for the other fields. That might make the params object a bit less verbose.
/// Describes a single parameter of any type.
pub trait Param: Display {
/// The plain parameter type.