pub enum Integrator {
SemiImplicitEuler,
RungeKutta4,
}Expand description
Integration method for the spring ODE.
Variants§
SemiImplicitEuler
Semi-implicit Euler — fast, stable, default choice for animation.
RungeKutta4
4th-order Runge-Kutta — more accurate for high-stiffness springs.
Trait Implementations§
Source§impl Clone for Integrator
impl Clone for Integrator
Source§fn clone(&self) -> Integrator
fn clone(&self) -> Integrator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Integrator
impl Debug for Integrator
Source§impl PartialEq for Integrator
impl PartialEq for Integrator
Source§fn eq(&self, other: &Integrator) -> bool
fn eq(&self, other: &Integrator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Integrator
Auto Trait Implementations§
impl Freeze for Integrator
impl RefUnwindSafe for Integrator
impl Send for Integrator
impl Sync for Integrator
impl Unpin for Integrator
impl UnsafeUnpin for Integrator
impl UnwindSafe for Integrator
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