Skip to main content

Animatable

Trait Animatable 

pub trait Animatable: Copy {
    // Required method
    fn lerp(self, to: Self, t: f64) -> Self;
}
Expand description

Linear interpolation of animatable values (t in 0.0..1.0). This drives the canvas / self-driven animation path (docs/shapes.md §5) and Qt’s sampled spring; native-widget animation does NOT use it — the toolkit interpolates on its own compositor.

Required Methods§

fn lerp(self, to: Self, t: f64) -> 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§

§

impl Animatable for f64

§

fn lerp(self, to: f64, t: f64) -> f64

Implementors§

Day API ↩ Guides· daybrite.dev