Skip to main content

AnimId

Trait AnimId 

Source
pub trait AnimId {
    // Required method
    fn get(&self, cx: &EventContext<'_>) -> Option<Animation>;
}
Expand description

Trait for getting the animation id From an Animation or an animation name.

Required Methods§

Source

fn get(&self, cx: &EventContext<'_>) -> Option<Animation>

Returns the animation associated with the id.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AnimId for &'static str

Source§

fn get(&self, cx: &EventContext<'_>) -> Option<Animation>

Implementors§