Trait Integrator

Source
pub trait Integrator<S: State> {
    // Required method
    fn propagate_in_place<D>(
        &mut self,
        start: &mut S,
        diff_eq: D,
        step: StepSize,
    )
       where D: Fn(&S) -> S::Derivative;

    // Provided method
    fn propagate<D>(&mut self, start: &S, diff_eq: D, step: StepSize) -> S
       where D: Fn(&S) -> S::Derivative { ... }
}

Required Methods§

Source

fn propagate_in_place<D>(&mut self, start: &mut S, diff_eq: D, step: StepSize)
where D: Fn(&S) -> S::Derivative,

Provided Methods§

Source

fn propagate<D>(&mut self, start: &S, diff_eq: D, step: StepSize) -> S
where D: Fn(&S) -> S::Derivative,

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.

Implementors§