pub trait Score:
Clone
+ PartialOrd
+ Display
+ Serialize
+ for<'de> Deserialize<'de> {
// Required methods
fn is_feasible(&self) -> bool;
fn is_solution_initialized(&self) -> bool;
fn zero() -> Self
where Self: Sized;
fn negate(&self) -> Self;
fn add(&self, other: &Self) -> Self;
fn subtract(&self, other: &Self) -> Self;
}Required Methods§
fn is_feasible(&self) -> bool
fn is_solution_initialized(&self) -> bool
fn zero() -> Selfwhere
Self: Sized,
fn negate(&self) -> Self
fn add(&self, other: &Self) -> Self
fn subtract(&self, other: &Self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.