[][src]Trait kas::widget::SliderType

pub trait SliderType: Copy + Debug + PartialOrd + Add<Output = Self> + Sub<Output = Self> + 'static {
    pub fn div_as_f64(self, rhs: Self) -> f64;
pub fn mul_f64(self, scalar: f64) -> Self; }

Requirements on type used by Slider

Required methods

pub fn div_as_f64(self, rhs: Self) -> f64[src]

Divide self by another instance of this type, returning an f64

Note: in practice, we always have rhs >= self and expect the result to be between 0 and 1.

pub fn mul_f64(self, scalar: f64) -> Self[src]

Return the result of multiplying self by an f64 scalar

Note: the scalar is expected to be between 0 and 1, hence this operation should not produce a value outside the range of Self.

Loading content...

Implementations on Foreign Types

impl SliderType for f64[src]

impl SliderType for f32[src]

impl SliderType for i8[src]

impl SliderType for i16[src]

impl SliderType for i32[src]

impl SliderType for i64[src]

impl SliderType for i128[src]

impl SliderType for isize[src]

impl SliderType for u8[src]

impl SliderType for u16[src]

impl SliderType for u32[src]

impl SliderType for u64[src]

impl SliderType for u128[src]

impl SliderType for usize[src]

impl SliderType for Duration[src]

Loading content...

Implementors

Loading content...