SliderValue

Trait SliderValue 

Source
pub trait SliderValue:
    Copy
    + Debug
    + PartialOrd
    + Add<Output = Self>
    + Sub<Output = Self>
    + Cast<f64>
    + ConvApprox<f64>
    + 'static {
    // Required method
    fn default_step() -> Self;
}
Expand description

Requirements on type used by Slider

Implementations are provided for standard float and integer types.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl SliderValue for f32

Source§

impl SliderValue for f64

Source§

impl SliderValue for i8

Source§

impl SliderValue for i16

Source§

impl SliderValue for i32

Source§

impl SliderValue for i64

Source§

impl SliderValue for i128

Source§

impl SliderValue for isize

Source§

impl SliderValue for u8

Source§

impl SliderValue for u16

Source§

impl SliderValue for u32

Source§

impl SliderValue for u64

Source§

impl SliderValue for u128

Source§

impl SliderValue for usize

Implementors§