Skip to main content

DdeSolver

Trait DdeSolver 

Source
pub trait DdeSolver<S: Scalar> {
    // Required method
    fn solve<Sys, H>(
        system: &Sys,
        t0: S,
        tf: S,
        history: &H,
        options: &DdeOptions<S>,
    ) -> Result<DdeResult<S>, String>
       where Sys: DdeSystem<S>,
             H: Fn(S) -> Vec<S>;
}
Expand description

Trait for DDE solvers.

Required Methods§

Source

fn solve<Sys, H>( system: &Sys, t0: S, tf: S, history: &H, options: &DdeOptions<S>, ) -> Result<DdeResult<S>, String>
where Sys: DdeSystem<S>, H: Fn(S) -> Vec<S>,

Solve the DDE problem.

§Arguments
  • system - The DDE system to solve
  • t0 - Initial time
  • tf - Final time
  • history - History function φ(t) for t ≤ t0
  • options - Solver options

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§