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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.