pub trait AnimatedValue {
    // Required methods
    fn time(&self) -> Duration;
    fn as_f32(&self) -> f32;
    fn as_string(&self) -> String;
    fn prepare(&mut self, direction: AnimDirection);
    fn is_finished(&self, index: i32, direction: AnimDirection) -> bool;
    fn advance(&mut self, index: i32, direction: AnimDirection);
}

Required Methods§

fn time(&self) -> Duration

fn as_f32(&self) -> f32

fn as_string(&self) -> String

fn prepare(&mut self, direction: AnimDirection)

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

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

Implementors§