[][src]Struct scales::prelude::LinearScale

pub struct LinearScale<N> { /* fields omitted */ }

A linear scale implementation with a fixed minimum and maximum that can optionally be inverted.

Implementations

impl<N> LinearScale<N> where
    N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone
[src]

pub fn new(min: N, max: N) -> LinearScale<N>[src]

pub fn inverted(min: N, max: N) -> LinearScale<N>[src]

Trait Implementations

impl<N: Clone> Clone for LinearScale<N>[src]

impl<N: Debug> Debug for LinearScale<N>[src]

impl<N: PartialEq> PartialEq<LinearScale<N>> for LinearScale<N>[src]

impl<N> Scale<N> for LinearScale<N> where
    N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone
[src]

impl<N> StructuralPartialEq for LinearScale<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for LinearScale<N> where
    N: RefUnwindSafe

impl<N> Send for LinearScale<N> where
    N: Send

impl<N> Sync for LinearScale<N> where
    N: Sync

impl<N> Unpin for LinearScale<N> where
    N: Unpin

impl<N> UnwindSafe for LinearScale<N> where
    N: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.