Score

Trait Score 

Source
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§

Source

fn is_feasible(&self) -> bool

Source

fn is_solution_initialized(&self) -> bool

Source

fn zero() -> Self
where Self: Sized,

Source

fn negate(&self) -> Self

Source

fn add(&self, other: &Self) -> Self

Source

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.

Implementors§