AnimationExt

Trait AnimationExt 

Source
pub trait AnimationExt: SignalExt {
    // Provided methods
    fn animated(self) -> WithMetadata<Self, Animation>
       where Self: Sized { ... }
    fn with_animation(
        self,
        animation: Animation,
    ) -> WithMetadata<Self, Animation>
       where Self: Sized { ... }
}
Expand description

Extension trait providing animation methods for reactive values

Provided Methods§

Source

fn animated(self) -> WithMetadata<Self, Animation>
where Self: Sized,

Apply default animation to this reactive value

Uses a reasonable default animation (ease-in-out with 250ms duration)

Source

fn with_animation(self, animation: Animation) -> WithMetadata<Self, Animation>
where Self: Sized,

Apply a specific animation to this reactive value

§Arguments
  • animation - The animation to apply

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S> AnimationExt for S
where S: SignalExt,