pub enum Integrator {
Euler,
Midpoint,
Rk4,
}Expand description
Explicit fixed-step integrators.
Variants§
Euler
First order. Cheap, and wrong fast enough to be visible — useful mainly as the thing a better integrator is compared against.
Midpoint
Second-order midpoint.
Rk4
Classical fourth-order Runge-Kutta. Accurate per step, and it dissipates: see the module docs before using it on anything conservative.
Implementations§
Source§impl Integrator
impl Integrator
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 moreimpl Copy for Integrator
Source§impl Debug for Integrator
impl Debug for Integrator
impl Eq for Integrator
Source§impl PartialEq for Integrator
impl PartialEq for Integrator
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