pub enum DrawCard {
Deck,
Discard(Card),
}Expand description
Represents the two options for a card that is drawn.
§Variants
Deck- A card drawn from the deck.Discard (Card)- A card drawn from the discard pile.
Variants§
Trait Implementations§
impl Copy for DrawCard
impl Eq for DrawCard
impl StructuralPartialEq for DrawCard
Auto Trait Implementations§
impl Freeze for DrawCard
impl RefUnwindSafe for DrawCard
impl Send for DrawCard
impl Sync for DrawCard
impl Unpin for DrawCard
impl UnsafeUnpin for DrawCard
impl UnwindSafe for DrawCard
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