Struct ObjectiveValue
pub struct ObjectiveValue { /* private fields */ }Implementations§
§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§
§impl Clone for ObjectiveValue
impl Clone for ObjectiveValue
§fn clone(&self) -> ObjectiveValue
fn clone(&self) -> ObjectiveValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ObjectiveValue
impl Debug for ObjectiveValue
§impl PartialEq for ObjectiveValue
impl PartialEq for ObjectiveValue
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