Skip to main content

AnimId

Trait AnimId 

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§

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§

§

impl AnimId for &'static str

§

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

Implementors§