Struct pokers::hand_range::HandRange
source · pub struct HandRange {
pub hands: Vec<Combo>,
pub char_vec: Vec<char>,
}
Expand description
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§
source§impl HandRange
impl HandRange
sourcepub fn from_strings(arr: Vec<String>) -> Vec<Self>
pub fn from_strings(arr: Vec<String>) -> Vec<Self>
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 pokers::hand_range::HandRange;
let ranges = HandRange::from_strings(["22+,QQ@50".to_string(), "AKs".to_string()].to_vec());
sourcepub fn remove_conflicting_combos(&mut self, board_mask: u64, dead_mask: u64)
pub fn remove_conflicting_combos(&mut self, board_mask: u64, dead_mask: u64)
remove combos that conflict with board
sourcepub fn from_string(text: String) -> Self
pub fn from_string(text: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandRange
impl RefUnwindSafe for HandRange
impl Send for HandRange
impl Sync for HandRange
impl Unpin for HandRange
impl UnwindSafe for HandRange
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