pub struct HyperbolaPayoutCurvePiece {
pub use_positive_piece: bool,
pub translate_outcome: f64,
pub translate_payout: f64,
pub a: f64,
pub b: f64,
pub c: f64,
pub d: f64,
}Expand description
A payout curve represented as an hyperbola.
Fields§
§use_positive_piece: boolWhether to use the positive or negative piece represented by this hyperbola.
translate_outcome: f64Parameter to the hyperbola curve.
translate_payout: f64Parameter to the hyperbola curve.
a: f64Parameter to the hyperbola curve.
b: f64Parameter to the hyperbola curve.
c: f64Parameter to the hyperbola curve.
d: f64Parameter to the hyperbola curve.
Trait Implementations§
Source§impl Clone for HyperbolaPayoutCurvePiece
impl Clone for HyperbolaPayoutCurvePiece
Source§fn clone(&self) -> HyperbolaPayoutCurvePiece
fn clone(&self) -> HyperbolaPayoutCurvePiece
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 HyperbolaPayoutCurvePiece
impl Debug for HyperbolaPayoutCurvePiece
Source§impl Readable for HyperbolaPayoutCurvePiece
impl Readable for HyperbolaPayoutCurvePiece
Source§impl Writeable for HyperbolaPayoutCurvePiece
impl Writeable for HyperbolaPayoutCurvePiece
impl StructuralPartialEq for HyperbolaPayoutCurvePiece
Auto Trait Implementations§
impl Freeze for HyperbolaPayoutCurvePiece
impl RefUnwindSafe for HyperbolaPayoutCurvePiece
impl Send for HyperbolaPayoutCurvePiece
impl Sync for HyperbolaPayoutCurvePiece
impl Unpin for HyperbolaPayoutCurvePiece
impl UnwindSafe for HyperbolaPayoutCurvePiece
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