[−][src]Struct iter_num_tools::lerp::Lerp
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]
T: FromPrimitive,
pub fn new_usize(from: RangeInclusive<usize>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_u128(from: RangeInclusive<u128>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_u64(from: RangeInclusive<u64>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_u32(from: RangeInclusive<u32>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_u8(from: RangeInclusive<u8>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_isize(from: RangeInclusive<isize>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_i128(from: RangeInclusive<i128>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_i64(from: RangeInclusive<i64>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_i32(from: RangeInclusive<i32>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_i8(from: RangeInclusive<i8>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
pub fn new_f32(from: RangeInclusive<f32>, to: RangeInclusive<T>) -> Self
[src]
impl<T> Lerp<T> where
T: FromPrimitive,
[src]
T: FromPrimitive,
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]
T: Mul<Output = T> + Add<Output = T> + Sub<Output = T> + Div<Output = T> + Copy,
Auto Trait Implementations
impl<T> RefUnwindSafe for Lerp<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Lerp<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Lerp<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Lerp<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Lerp<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,