Skip to main content

Interpolatable

Trait Interpolatable 

Source
pub trait Interpolatable {
    // Required method
    fn interpolate(&self, to: &Self, p: f32) -> Self;
}

Required Methods§

Source

fn interpolate(&self, to: &Self, p: f32) -> 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 Interpolatable for f32

Source§

fn interpolate(&self, to: &Self, p: f32) -> Self

Source§

impl Interpolatable for f64

Source§

fn interpolate(&self, to: &Self, p: f32) -> Self

Source§

impl<E: Interpolatable> Interpolatable for Vec<E>

Source§

fn interpolate(&self, to: &Self, p: f32) -> Self

Source§

impl<E: Interpolatable, const N: usize> Interpolatable for [E; N]

Source§

fn interpolate(&self, to: &Self, p: f32) -> Self

Implementors§