pub trait Animation: Send + Sync {
// Required method
fn frame(&self, tick: u64) -> String;
// Provided methods
fn is_complete(&self, tick: u64) -> bool { ... }
fn frame_rate(&self) -> u32 { ... }
}Expand description
Trait for creating animated terminal effects
Required Methods§
Provided Methods§
Sourcefn is_complete(&self, tick: u64) -> bool
fn is_complete(&self, tick: u64) -> bool
Check if the animation has completed (for finite animations)
Sourcefn frame_rate(&self) -> u32
fn frame_rate(&self) -> u32
Get the recommended frame rate (FPS)