pub struct MaximizeNetPnL;Expand description
Objective function to maximize Net PnL.
Trait Implementations§
Source§impl Clone for MaximizeNetPnL
impl Clone for MaximizeNetPnL
Source§fn clone(&self) -> MaximizeNetPnL
fn clone(&self) -> MaximizeNetPnL
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 moreimpl Copy for MaximizeNetPnL
Source§impl Debug for MaximizeNetPnL
impl Debug for MaximizeNetPnL
Source§impl Default for MaximizeNetPnL
impl Default for MaximizeNetPnL
Source§fn default() -> MaximizeNetPnL
fn default() -> MaximizeNetPnL
Returns the “default value” for a type. Read more
Source§impl ObjectiveFunction for MaximizeNetPnL
impl ObjectiveFunction for MaximizeNetPnL
Source§fn evaluate(&self, result: &SimulationResult) -> Decimal
fn evaluate(&self, result: &SimulationResult) -> Decimal
Evaluates the simulation result and returns a score.
Source§fn compare(&self, a: &SimulationResult, b: &SimulationResult) -> Ordering
fn compare(&self, a: &SimulationResult, b: &SimulationResult) -> Ordering
Compares two simulation results.
Auto Trait Implementations§
impl Freeze for MaximizeNetPnL
impl RefUnwindSafe for MaximizeNetPnL
impl Send for MaximizeNetPnL
impl Sync for MaximizeNetPnL
impl Unpin for MaximizeNetPnL
impl UnsafeUnpin for MaximizeNetPnL
impl UnwindSafe for MaximizeNetPnL
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