Struct rusty_freecell::cards::Card
source · pub struct Card {
pub rank: u8,
pub suit: u8,
}
Expand description
A struct representing a playing card with a rank and a suit.
Fields§
§rank: u8
The rank of the card, from 1 (Ace) to 13 (King).
suit: u8
The suit of the card, represented as an integer where:
- 1: Hearts
- 2: Clubs
- 3: Diamonds
- 4: Spades
Trait Implementations§
source§impl PartialEq for Card
impl PartialEq for Card
impl Copy for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnwindSafe for Card
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