pub struct KellyFraction(/* private fields */);Expand description
A validated Kelly fraction in the range [0.0, 1.0].
Represents the fraction of available capital to allocate to a trade.
Implementations§
Trait Implementations§
Source§impl Clone for KellyFraction
impl Clone for KellyFraction
Source§fn clone(&self) -> KellyFraction
fn clone(&self) -> KellyFraction
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 moreSource§impl Debug for KellyFraction
impl Debug for KellyFraction
Source§impl Display for KellyFraction
impl Display for KellyFraction
Source§impl Ord for KellyFraction
impl Ord for KellyFraction
Source§fn cmp(&self, other: &KellyFraction) -> Ordering
fn cmp(&self, other: &KellyFraction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KellyFraction
impl PartialEq for KellyFraction
Source§impl PartialOrd for KellyFraction
impl PartialOrd for KellyFraction
impl Copy for KellyFraction
impl Eq for KellyFraction
impl StructuralPartialEq for KellyFraction
Auto Trait Implementations§
impl Freeze for KellyFraction
impl RefUnwindSafe for KellyFraction
impl Send for KellyFraction
impl Sync for KellyFraction
impl Unpin for KellyFraction
impl UnsafeUnpin for KellyFraction
impl UnwindSafe for KellyFraction
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