From b61d17fee9b28845d770cadce87bd1a433ffa3a5 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 9 Feb 2022 19:45:16 +0100 Subject: [PATCH] Require all parameters to have a Display instance So their value can be easily formatted in UIs. --- src/param.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/param.rs b/src/param.rs index 376f440b..a64a2d51 100644 --- a/src/param.rs +++ b/src/param.rs @@ -29,8 +29,8 @@ pub mod smoothing; pub type FloatParam = PlainParam; pub type IntParam = PlainParam; -/// 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;