Trait kas_widgets::SpinnerValue
source · pub trait SpinnerValue: Copy + PartialOrd + Debug + FromStr + ToString + 'static {
// Required methods
fn default_step() -> Self;
fn clamp(self, l_bound: Self, u_bound: Self) -> Self;
fn add_step(self, step: Self, u_bound: Self) -> Self;
fn sub_step(self, step: Self, l_bound: Self) -> Self;
}
Expand description
Requirements on type used by Spinner
Implementations are provided for standard float and integer types.
Required Methods§
sourcefn default_step() -> Self
fn default_step() -> Self
The default step size (usually 1)
Object Safety§
This trait is not object safe.