pub trait Preference {
// Required method
fn evaluate(&self, reader: &Reader<'_>) -> GeopResult<Constraint>;
}Expand description
What a solve should prefer among the states where the constraints
hold: residuals it wants small — not zero at any price — where the part
is as reader reads it, each a length, and their derivatives by the
state. A drag, pulling a point of a placed part towards the pointer.
Required Methods§
fn evaluate(&self, reader: &Reader<'_>) -> GeopResult<Constraint>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".