Trait Animation

Source
pub trait Animation: Debug {
    // Required methods
    unsafe fn update(
        &mut self,
        path: Rc<PathData>,
        frame_count: &usize,
    ) -> Result<()>;
    fn object_id(&self) -> &str;
}

Required Methods§

Source

unsafe fn update( &mut self, path: Rc<PathData>, frame_count: &usize, ) -> Result<()>

Called once every frame

Source

fn object_id(&self) -> &str

Implementors§