Enum postflop_solver::BetSize
source · pub enum BetSize {
PotRelative(f64),
PrevBetRelative(f64),
Additive(i32, i32),
Geometric(i32, f64),
AllIn,
}
Expand description
Bet size specification.
Variants§
PotRelative(f64)
Bet size relative to the current pot size.
PrevBetRelative(f64)
Bet size relative to the previous bet size (only valid for raise actions).
Additive(i32, i32)
Constant bet size of the first element with a raise cap of the second element.
If the second element is 0
, there is no raise cap.
Geometric(i32, f64)
Geometric bet size for i32
streets with maximum pot-relative size of f64
.
If i32 == 0
, the number of streets is as follows: flop = 3, turn = 2, river = 1.
AllIn
Bet size representing all-in.
Trait Implementations§
source§impl<'__de> BorrowDecode<'__de> for BetSize
impl<'__de> BorrowDecode<'__de> for BetSize
source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
source§impl PartialEq<BetSize> for BetSize
impl PartialEq<BetSize> for BetSize
source§impl PartialOrd<BetSize> for BetSize
impl PartialOrd<BetSize> for BetSize
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BetSize
impl StructuralPartialEq for BetSize
Auto Trait Implementations§
impl RefUnwindSafe for BetSize
impl Send for BetSize
impl Sync for BetSize
impl Unpin for BetSize
impl UnwindSafe for BetSize
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