pub struct Card {
pub rank: Rank,
pub suit: Suit,
}Expand description
Playing card representation.
Represents a single playing card with a rank and suit, with macros for convenient creation.
Fields§
§rank: Rank§suit: SuitImplementations§
Trait Implementations§
Source§impl BitOrAssign<Card> for Card64
impl BitOrAssign<Card> for Card64
Source§fn bitor_assign(&mut self, rhs: Card)
fn bitor_assign(&mut self, rhs: Card)
Performs the
|= operation. Read moreSource§impl FromIterator<Card> for Card64
impl FromIterator<Card> for Card64
Source§impl Ord for Card
impl Ord for Card
Source§impl PartialOrd for Card
impl PartialOrd for Card
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 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