Skip to main content

Inspectable

Trait Inspectable 

Source
pub trait Inspectable: Update {
    // Required method
    fn introspect(&self) -> AnimationIntrospection;
}
Expand description

Animation interface for DevTools and runtime inspectors.

This extends Update with read-only runtime state. It is implemented by Animato’s built-in animation types and can be implemented by custom animations that want to participate in AnimationDriver snapshots.

Required Methods§

Source

fn introspect(&self) -> AnimationIntrospection

Return a compact, allocation-free snapshot of the current animation state.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§