layers::prelude

Trait Interpolate

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

Required Methods§

Source

fn interpolate(&self, to: &Self, f: 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 Interpolate for Option<Picture>

Source§

fn interpolate(&self, other: &Option<Picture>, f: f32) -> Option<Picture>

Source§

impl Interpolate for bool

Source§

fn interpolate(&self, other: &bool, f: f32) -> bool

Implementors§