Skip to main content

Solver

Trait Solver 

Source
pub trait Solver:
    Held
    + Send
    + Sync {
    // Required methods
    fn step(&mut self, args: &[f64]) -> Result<f64, SampleError>;
    fn bytes(&self) -> usize;
}
Expand description

One sample per call, args in Params::varying order; none steps on the site’s own.

Required Methods§

Source

fn step(&mut self, args: &[f64]) -> Result<f64, SampleError>

Source

fn bytes(&self) -> usize

What one copy of this site holds, its grids and parameters alike.

Trait Implementations§

Source§

impl Clone for Box<dyn Solver>

Source§

fn clone(&self) -> Box<dyn Solver>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§