[][src]Struct iter_num_tools::lerp::Lerp

pub struct Lerp<T> { /* fields omitted */ }

Lerp represents the range over the linear interpolation

Implementations

impl<T> Lerp<T>[src]

pub fn new(from: RangeInclusive<T>, to: RangeInclusive<T>) -> Self[src]

Create a new linear interpolator over the provided ranges

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_usize(from: RangeInclusive<usize>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_u128(from: RangeInclusive<u128>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_u64(from: RangeInclusive<u64>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_u32(from: RangeInclusive<u32>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_u8(from: RangeInclusive<u8>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_isize(from: RangeInclusive<isize>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_i128(from: RangeInclusive<i128>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_i64(from: RangeInclusive<i64>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_i32(from: RangeInclusive<i32>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_i8(from: RangeInclusive<i8>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_f32(from: RangeInclusive<f32>, to: RangeInclusive<T>) -> Self[src]

impl<T> Lerp<T> where
    T: FromPrimitive
[src]

pub fn new_f64(from: RangeInclusive<f64>, to: RangeInclusive<T>) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for Lerp<T>[src]

impl<T: Copy> Copy for Lerp<T>[src]

impl<T> Function<T> for Lerp<T> where
    T: Mul<Output = T> + Add<Output = T> + Sub<Output = T> + Div<Output = T> + Copy
[src]

type Output = T

Auto Trait Implementations

impl<T> RefUnwindSafe for Lerp<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Lerp<T> where
    T: Send
[src]

impl<T> Sync for Lerp<T> where
    T: Sync
[src]

impl<T> Unpin for Lerp<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Lerp<T> where
    T: UnwindSafe
[src]

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.