pub trait OptimizationValue: Aggregate {
type Inner: Clone + PartialOrd + Debug + Serialize + DeserializeOwned;
// Required method
fn meets_bound(value: &Self, bound: &Self::Inner) -> bool;
}Expand description
Trait for aggregate values that represent optimization objectives.
Required Associated Types§
Sourcetype Inner: Clone + PartialOrd + Debug + Serialize + DeserializeOwned
type Inner: Clone + PartialOrd + Debug + Serialize + DeserializeOwned
The inner numeric type used for comparisons with decision bounds.
Required Methods§
Sourcefn meets_bound(value: &Self, bound: &Self::Inner) -> bool
fn meets_bound(value: &Self, bound: &Self::Inner) -> bool
Whether this aggregate value satisfies the provided decision bound.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".