Trait AnimatedValue

pub trait AnimatedValue:
    Clone
    + Default
    + 'static {
    // Required methods
    fn prepare(&mut self, direction: AnimDirection);
    fn is_finished(&self, index: u128, direction: AnimDirection) -> bool;
    fn advance(&mut self, index: u128, direction: AnimDirection);
    fn finish(&mut self, direction: AnimDirection);
    fn into_reversed(self) -> Self;
}

Required Methods§

fn prepare(&mut self, direction: AnimDirection)

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

fn advance(&mut self, index: u128, direction: AnimDirection)

fn finish(&mut self, direction: AnimDirection)

fn into_reversed(self) -> 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<T1> AnimatedValue for (T1,)
where T1: AnimatedValue,

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1,)

§

impl<T1, T2> AnimatedValue for (T1, T2)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2)

§

impl<T1, T2, T3> AnimatedValue for (T1, T2, T3)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3)

§

impl<T1, T2, T3, T4> AnimatedValue for (T1, T2, T3, T4)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4)

§

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

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4, T5)

§

impl<T1, T2, T3, T4, T5, T6> AnimatedValue for (T1, T2, T3, T4, T5, T6)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4, T5, T6)

§

impl<T1, T2, T3, T4, T5, T6, T7> AnimatedValue for (T1, T2, T3, T4, T5, T6, T7)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4, T5, T6, T7)

§

impl<T1, T2, T3, T4, T5, T6, T7, T8> AnimatedValue for (T1, T2, T3, T4, T5, T6, T7, T8)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4, T5, T6, T7, T8)

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> AnimatedValue for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4, T5, T6, T7, T8, T9)

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> AnimatedValue for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> AnimatedValue for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> AnimatedValue for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

§

fn prepare(&mut self, direction: AnimDirection)

§

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

§

fn advance(&mut self, index: u128, direction: AnimDirection)

§

fn finish(&mut self, direction: AnimDirection)

§

fn into_reversed(self) -> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Implementors§

§

impl AnimatedValue for AnimColor

§

impl AnimatedValue for AnimNum

§

impl<Animated, const N: usize> AnimatedValue for AnimSequential<Animated, N>
where Animated: AnimatedValue,