Range

Trait Range 

Source
pub trait Range {
    // Required methods
    fn contains(&self, hand: (&Card, &Card)) -> bool;
    fn draw(&self) -> (Card, Card);
}
Expand description

Any range should be able to get checked whether a hand can be in it and to draw a random card sample.

Required Methods§

Source

fn contains(&self, hand: (&Card, &Card)) -> bool

Source

fn draw(&self) -> (Card, Card)

Implementors§