[][src]Struct rust_poker::hand_range::Combo

pub struct Combo(pub u8, pub u8, pub u8);

A single player hand 0: index of card 1 1: index of card 2 2: weight of combo

Trait Implementations

impl Clone for Combo[src]

impl Copy for Combo[src]

impl Debug for Combo[src]

impl Display for Combo[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Writes hole cards to string

Example

// prints '2s2h'
use rust_poker::hand_range::Combo;
let hand = Combo(0, 1, 100);
println!("{}", hand.to_string());

impl Eq for Combo[src]

impl Ord for Combo[src]

impl PartialEq<Combo> for Combo[src]

impl PartialOrd<Combo> for Combo[src]

Auto Trait Implementations

impl RefUnwindSafe for Combo

impl Send for Combo

impl Sync for Combo

impl Unpin for Combo

impl UnwindSafe for Combo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,