Skip to main content

Interpolate

Trait Interpolate 

Source
pub trait Interpolate: Clone {
    // Required method
    fn interpolate(&self, target: &Self, progress: f32) -> Self;
}
Expand description

A value that can be interpolated between two application-owned targets.

Required Methods§

Source

fn interpolate(&self, target: &Self, progress: f32) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Interpolate for Bounds<Pixels>

Source§

fn interpolate(&self, target: &Self, progress: f32) -> Self

Source§

impl Interpolate for Size<Pixels>

Source§

fn interpolate(&self, target: &Self, progress: f32) -> Self

Implementors§