pub trait SpringAnim: Sized + Default {
type Velocity: Default + Debug;
// Required method
fn spring(
current: &Self,
target: &Self,
velocity: &Self::Velocity,
params: SpringParams,
delta: f64,
) -> (Self, Self::Velocity);
}Required Associated Types§
Required Methods§
fn spring( current: &Self, target: &Self, velocity: &Self::Velocity, params: SpringParams, delta: f64, ) -> (Self, Self::Velocity)
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.