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§
Sourcefn animated(self) -> WithMetadata<Self, Animation>where
Self: Sized,
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)
Sourcefn with_animation(self, animation: Animation) -> WithMetadata<Self, Animation>where
Self: Sized,
fn with_animation(self, animation: Animation) -> WithMetadata<Self, Animation>where
Self: Sized,
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.