pub struct MultiObjectiveFn<F> { /* private fields */ }Expand description
A closure used as a MultiObjective; created by multi_objective_fn.
Trait Implementations§
Source§impl<F: Clone> Clone for MultiObjectiveFn<F>
impl<F: Clone> Clone for MultiObjectiveFn<F>
impl<F: Copy> Copy for MultiObjectiveFn<F>
Source§impl<F: Debug> Debug for MultiObjectiveFn<F>
impl<F: Debug> Debug for MultiObjectiveFn<F>
Source§impl<G: ?Sized, F: FnMut(&G, &mut [f64]) -> f64> MultiObjective<G> for MultiObjectiveFn<F>
impl<G: ?Sized, F: FnMut(&G, &mut [f64]) -> f64> MultiObjective<G> for MultiObjectiveFn<F>
Source§fn objectives(&self) -> usize
fn objectives(&self) -> usize
The number of objectives,
m >= 1; constant for the lifetime of the problem.Auto Trait Implementations§
impl<F> Forget for MultiObjectiveFn<F>
impl<F> Freeze for MultiObjectiveFn<F>where
F: Freeze,
impl<F> Move for MultiObjectiveFn<F>
impl<F> RefUnwindSafe for MultiObjectiveFn<F>where
F: RefUnwindSafe,
impl<F> Send for MultiObjectiveFn<F>where
F: Send,
impl<F> Sync for MultiObjectiveFn<F>where
F: Sync,
impl<F> Unpin for MultiObjectiveFn<F>where
F: Unpin,
impl<F> UnsafeUnpin for MultiObjectiveFn<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for MultiObjectiveFn<F>where
F: UnwindSafe,
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