pub struct SoftScore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Ord for SoftScore
impl Ord for SoftScore
Source§impl ParseableScore for SoftScore
impl ParseableScore for SoftScore
fn parse(s: &str) -> Result<Self, ScoreParseError>
fn to_string_repr(&self) -> String
Source§impl PartialOrd for SoftScore
impl PartialOrd for SoftScore
Source§impl Score for SoftScore
impl Score for SoftScore
fn is_feasible(&self) -> bool
fn zero() -> Self
fn levels_count() -> usize
fn to_level_numbers(&self) -> Vec<i64>
fn from_level_numbers(levels: &[i64]) -> Self
fn multiply(&self, multiplicand: f64) -> Self
fn divide(&self, divisor: f64) -> Self
fn abs(&self) -> Self
fn level_label(index: usize) -> ScoreLevel
fn to_scalar(&self) -> f64
fn compare(&self, other: &Self) -> Ordering
fn is_better_than(&self, other: &Self) -> bool
fn is_worse_than(&self, other: &Self) -> bool
fn is_equal_to(&self, other: &Self) -> bool
fn one_hard() -> Self
fn one_soft() -> Self
fn one_medium() -> Self
impl Copy for SoftScore
impl Eq for SoftScore
impl StructuralPartialEq for SoftScore
Auto Trait Implementations§
impl Freeze for SoftScore
impl RefUnwindSafe for SoftScore
impl Send for SoftScore
impl Sync for SoftScore
impl Unpin for SoftScore
impl UnsafeUnpin for SoftScore
impl UnwindSafe for SoftScore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more