pub struct ScrollSpringSimulation { /* private fields */ }Expand description
A SpringSimulation where the value of x is
guaranteed to have exactly the end value when the simulation
is_done.
Implementations§
Source§impl ScrollSpringSimulation
impl ScrollSpringSimulation
Sourcepub fn new(
spring: SpringDescription,
start: f64,
end: f64,
velocity: f64,
tolerance: Tolerance,
) -> ScrollSpringSimulation
pub fn new( spring: SpringDescription, start: f64, end: f64, velocity: f64, tolerance: Tolerance, ) -> ScrollSpringSimulation
Creates a spring simulation from the provided spring description, start distance, end distance, and initial velocity.
See SpringSimulation::new on the superclass for a discussion of the
arguments’ units.
Trait Implementations§
Source§impl Debug for ScrollSpringSimulation
impl Debug for ScrollSpringSimulation
Auto Trait Implementations§
impl Forget for ScrollSpringSimulation
impl Freeze for ScrollSpringSimulation
impl Move for ScrollSpringSimulation
impl RefUnwindSafe for ScrollSpringSimulation
impl Send for ScrollSpringSimulation
impl Sync for ScrollSpringSimulation
impl Unpin for ScrollSpringSimulation
impl UnsafeUnpin for ScrollSpringSimulation
impl UnwindSafe for ScrollSpringSimulation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more