pub enum Objective {
Single(Optimize),
Multi(Vec<Optimize>),
}
Variants§
Implementations§
Source§impl Objective
impl Objective
pub fn is_single(&self) -> bool
pub fn is_multi(&self) -> bool
pub fn cmp<T>(&self, a: &T, b: &T) -> Orderingwhere
T: PartialOrd,
pub fn sort<T: AsMut<[K]>, K: Scored + PartialOrd>(&self, population: &mut T)
pub fn is_better<T>(&self, a: &T, b: &T) -> boolwhere
T: PartialOrd,
Trait Implementations§
impl StructuralPartialEq for Objective
Auto Trait Implementations§
impl Freeze for Objective
impl RefUnwindSafe for Objective
impl Send for Objective
impl Sync for Objective
impl Unpin for Objective
impl UnwindSafe for Objective
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