pub struct Card {
pub suit: Suit,
pub rank: Rank,
}Expand description
A playing card
Internally packed as (rank << 2) | suit in a single byte.
Fields§
§suit: SuitThe suit of the card
rank: RankThe rank of the card
Trait Implementations§
Source§impl FromIterator<Card> for Hand
impl FromIterator<Card> for Hand
impl Copy for Card
impl Eq for Card
impl StructuralPartialEq 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 UnsafeUnpin 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