pub trait AnimateCtx: FrameClock {
// Required method
fn animate_after<T>(
&mut self,
motion: &mut Motion<T>,
target: T,
delay: f64,
spec: AnimationSpec,
) -> bool
where T: Interpolate + Copy + PartialEq;
// Provided method
fn animate<T>(
&mut self,
motion: &mut Motion<T>,
target: T,
spec: AnimationSpec,
) -> bool
where T: Interpolate + Copy + PartialEq { ... }
}Expand description
A context that can start Motion transitions: event, measure, and
arrange contexts.
Required Methods§
Sourcefn animate_after<T>(
&mut self,
motion: &mut Motion<T>,
target: T,
delay: f64,
spec: AnimationSpec,
) -> bool
fn animate_after<T>( &mut self, motion: &mut Motion<T>, target: T, delay: f64, spec: AnimationSpec, ) -> bool
Provided Methods§
Sourcefn animate<T>(
&mut self,
motion: &mut Motion<T>,
target: T,
spec: AnimationSpec,
) -> bool
fn animate<T>( &mut self, motion: &mut Motion<T>, target: T, spec: AnimationSpec, ) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".