pub struct ObjectiveValue { /* private fields */ }Implementations§
Source§impl ObjectiveValue
impl ObjectiveValue
pub fn new(value: f64, direction: ObjectiveDirection) -> Option<ObjectiveValue>
pub fn value(self) -> f64
pub fn direction(self) -> ObjectiveDirection
pub fn is_better_than(&self, other: &ObjectiveValue) -> Option<bool>
pub fn better(self, other: ObjectiveValue) -> Option<ObjectiveValue>
Trait Implementations§
Source§impl Clone for ObjectiveValue
impl Clone for ObjectiveValue
Source§fn clone(&self) -> ObjectiveValue
fn clone(&self) -> ObjectiveValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectiveValue
impl Debug for ObjectiveValue
Source§impl PartialEq for ObjectiveValue
impl PartialEq for ObjectiveValue
Source§fn eq(&self, other: &ObjectiveValue) -> bool
fn eq(&self, other: &ObjectiveValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ObjectiveValue
impl StructuralPartialEq for ObjectiveValue
Auto Trait Implementations§
impl Freeze for ObjectiveValue
impl RefUnwindSafe for ObjectiveValue
impl Send for ObjectiveValue
impl Sync for ObjectiveValue
impl Unpin for ObjectiveValue
impl UnsafeUnpin for ObjectiveValue
impl UnwindSafe for ObjectiveValue
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