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

pub struct HandRange {
    pub hands: Vec<Combo>,
    pub char_vec: Vec<char>,
}

A range of private player hands for texas holdem

Fields

hands: Vec<Combo>

A vector of possible hole card combinations

char_vec: Vec<char>

Implementations

impl HandRange[src]

pub fn from_strings(arr: Vec<String>) -> Vec<Self>[src]

Create a vector of Handrange from a vector of strings

Supports weighting between 0-100 using the @0-100 after the combo. If no weight is specified, weights will default to 100.

Arguments

  • arr - A vector of equilab-like range strings

Example

use rust_poker::hand_range::HandRange;
let ranges = HandRange::from_strings(["22+,QQ@50".to_string(), "AKs".to_string()].to_vec());

pub fn remove_conflicting_combos(&mut self, board_mask: u64)[src]

remove combos that conflict with board

pub fn from_string(text: String) -> 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_string("JJ+".to_string());

impl HandRange[src]

pub fn apply_filter(&mut self, board: u64, filter: &RangeFilter)[src]

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