cushy::animation

Trait AnimateTarget

source
pub trait AnimateTarget: Send + Sync {
    // Required methods
    fn update(&self, percent: f32);
    fn finish(&self);
}
Expand description

The target of an Animate implementor.

Required Methods§

source

fn update(&self, percent: f32)

Updates the target with linear interpolation.

source

fn finish(&self)

Sets the target to the desired completion state.

Implementations on Foreign Types§

source§

impl<T0> AnimateTarget for (T0,)
where T0: AnimateTarget,

source§

fn update(&self, percent: f32)

source§

fn finish(&self)

source§

impl<T0, T1> AnimateTarget for (T0, T1)

source§

fn update(&self, percent: f32)

source§

fn finish(&self)

source§

impl<T0, T1, T2> AnimateTarget for (T0, T1, T2)

source§

fn update(&self, percent: f32)

source§

fn finish(&self)

source§

impl<T0, T1, T2, T3> AnimateTarget for (T0, T1, T2, T3)

source§

fn update(&self, percent: f32)

source§

fn finish(&self)

source§

impl<T0, T1, T2, T3, T4> AnimateTarget for (T0, T1, T2, T3, T4)

source§

fn update(&self, percent: f32)

source§

fn finish(&self)

source§

impl<T0, T1, T2, T3, T4, T5> AnimateTarget for (T0, T1, T2, T3, T4, T5)

source§

fn update(&self, percent: f32)

source§

fn finish(&self)

Implementors§