Trait soliterm_model::piles::PileMut
source · [−]pub trait PileMut: Pile {
fn take_at_most(&mut self, count: usize) -> Cards;
fn take_at_most_one(&mut self) -> Option<Card>;
fn take_or_none(&mut self, count: usize) -> Option<Cards>;
fn take_exactly(&mut self, count: usize) -> Cards;
fn take_exactly_one(&mut self) -> Card;
fn take_all(&mut self) -> Cards;
fn place<I>(&mut self, cards: I)
where
I: IntoIterator<Item = Card>;
fn place_one(&mut self, card: Card);
}