pub trait ClosestVectorTarget:
Clone
+ Debug
+ 'static {
const NAME: &'static str;
// Required methods
fn validate(&self, index: usize) -> Result<(), ConstructionError>;
fn to_f64(&self) -> Result<f64, EvaluationError>;
}Expand description
Target coordinate domains supported by ClosestVectorProblem.
Required Associated Constants§
Required Methods§
Sourcefn validate(&self, index: usize) -> Result<(), ConstructionError>
fn validate(&self, index: usize) -> Result<(), ConstructionError>
Validate one stored target coordinate.
Sourcefn to_f64(&self) -> Result<f64, EvaluationError>
fn to_f64(&self) -> Result<f64, EvaluationError>
Convert one coordinate for numerical evaluation and solving.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".