pub struct Odds(/* private fields */);Expand description
Pot-relative bet sizing as a fraction.
Represents raise sizes as numerator/denominator of the pot. For example,
Odds::new(1, 2) means a half-pot bet, Odds::new(2, 1) means a 2x pot overbet.
See [Size] for the full sizing abstraction that handles both pot-relative
and BB-relative interpretations.
Implementations§
Trait Implementations§
Source§impl From<Odds> for Probability
impl From<Odds> for Probability
Source§impl Ord for Odds
impl Ord for Odds
Source§impl PartialOrd for Odds
impl PartialOrd for Odds
Source§impl TryFrom<&str> for Odds
For +N format, odds are 1/N (pot fraction)
For -N format, odds are N/1 (overbet or BB multiple)
impl TryFrom<&str> for Odds
For +N format, odds are 1/N (pot fraction) For -N format, odds are N/1 (overbet or BB multiple)
impl Copy for Odds
impl Eq for Odds
impl StructuralPartialEq for Odds
Auto Trait Implementations§
impl Freeze for Odds
impl RefUnwindSafe for Odds
impl Send for Odds
impl Sync for Odds
impl Unpin for Odds
impl UnwindSafe for Odds
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.