[−][src]Struct rust_poker::hand_range::HandRange
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]
impl HandRange
[src]
pub fn apply_filter(&mut self, board: u64, filter: &RangeFilter)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HandRange
impl Send for HandRange
impl Sync for HandRange
impl Unpin for HandRange
impl UnwindSafe for HandRange
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,