pub enum Terminal {
Fold {
winner: Player,
invested: [f64; 2],
},
Showdown {
invested: [f64; 2],
},
}Expand description
How a hand ends, with the payoffs the solver uses.
Variants§
Fold
A player folded and winner takes the pot.
invested is each player’s total contribution to the pot at this point
(including the pre-street pot, split evenly as each player’s
baseline), in input chips. Built trees derive these from exact
Chips; they stay f64 because they are the payoffs the solver
kernels consume.
Fields
Showdown
Both players reach showdown on a complete board; the better hand wins
the opponent’s invested and a tie splits the pot.
Trait Implementations§
impl Copy for Terminal
impl StructuralPartialEq for Terminal
Auto Trait Implementations§
impl Forget for Terminal
impl Freeze for Terminal
impl Move for Terminal
impl RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnsafeUnpin for Terminal
impl UnwindSafe for Terminal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more