Skip to main content

Solver

Trait Solver 

Source
pub trait Solver: Held {
    // Required method
    fn step(&mut self) -> Result<f64, SampleError>;

    // Provided method
    fn take_motion(&mut self, _held: &dyn Solver) -> bool { ... }
}
Expand description

One sample per call. The derivative half of the old pair died with the lanes.

Required Methods§

Source

fn step(&mut self) -> Result<f64, SampleError>

Provided Methods§

Source

fn take_motion(&mut self, _held: &dyn Solver) -> bool

held’s motion under this site’s own parameters, where the two share one.

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§