Trait Lerpable

Source
pub trait Lerpable: Sized + Clone {
    // Required method
    fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self;

    // Provided method
    fn lerp_partial<T: IsLerpingMethod>(&self, _pct: T) -> Self { ... }
}

Required Methods§

Source

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Provided Methods§

Source

fn lerp_partial<T: IsLerpingMethod>(&self, _pct: T) -> Self

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 Lerpable for bool

Source§

fn lerpify<LerpMethod: IsLerpingMethod>( &self, other: &Self, method: &LerpMethod, ) -> Self

Source§

impl Lerpable for f32

Source§

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Source§

impl Lerpable for f64

Source§

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Source§

impl Lerpable for i32

Source§

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Source§

impl Lerpable for i64

Source§

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Source§

impl Lerpable for u8

Source§

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Source§

impl Lerpable for u16

Source§

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Source§

impl Lerpable for u64

Source§

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Source§

impl Lerpable for usize

Source§

fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self

Source§

impl Lerpable for String

Source§

fn lerpify<LerpMethod: IsLerpingMethod>( &self, other: &Self, method: &LerpMethod, ) -> Self

Source§

impl<T: Lerpable + Clone> Lerpable for Vec<T>

Source§

fn lerpify<LerpMethod: IsLerpingMethod>( &self, other: &Self, method: &LerpMethod, ) -> Self

Implementors§