pub trait HasHands {
// Required methods
fn hands(&self) -> &Hands;
fn hands_mut(&mut self) -> &mut Hands;
// Provided methods
fn hand(&self, player: Player) -> &Hand { ... }
fn hand_mut(&mut self, player: Player) -> &mut Hand { ... }
}Expand description
Trait for game states that have player hands.