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§
fn step(&mut self) -> Result<f64, SampleError>
Provided Methods§
Sourcefn take_motion(&mut self, _held: &dyn Solver) -> bool
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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".