Skip to main content

IntoMotionId

Trait IntoMotionId 

Source
pub trait IntoMotionId {
    // Required method
    fn into_motion_id(self) -> WidgetId;
}
Expand description

Converts user-facing motion identifiers into stable WidgetId values.

This is used by convenience helpers such as presence and appear so callers can pass either an explicit WidgetId or a stable string key.

let card = fission::motion::appear("welcome_card", fission::motion::fade(), child);

Required Methods§

Source

fn into_motion_id(self) -> WidgetId

Converts this value into the widget identity used by the motion runtime.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoMotionId for &'static str

Source§

impl IntoMotionId for String

Implementors§