[][src]Struct rust_poker::hand_range::HandRange

pub struct HandRange {
    pub hands: Vec<HoleCards>,
    // some fields omitted
}

A range of private player hands for texas holdem

Fields

hands: Vec<HoleCards>

A vector of possible hole card combinations

Implementations

impl HandRange[src]

pub fn from_str_arr(arr: Vec<&str>) -> Vec<Self>[src]

Create a vector of Handrange from a vector of strings

Arguments

  • arr - A vector of equilab-like range strings

Example

use rust_poker::hand_range::HandRange;
let ranges = HandRange::from_str_arr(["22+", "AKs"].to_vec());

pub fn from_str(text: &str) -> Self[src]

Create a Handrange from a string

Arguments

  • text - A equilab-like range string

Example

use rust_poker::hand_range::HandRange;
let range = HandRange::from_str("JJ+");

Trait Implementations

impl Clone for HandRange[src]

impl Debug for HandRange[src]

Auto Trait Implementations

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, 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>,