Struct dds_bridge::deal::Card
source · pub struct Card {
pub suit: Strain,
pub rank: u8,
}Expand description
A playing card
Fields§
§suit: StrainThe suit of the card
rank: u8The rank of the card
The rank is a number from 2 to 14. J, Q, K, A are denoted as 11, 12, 13, 14 respectively.
Implementations§
Trait Implementations§
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