Enum dds_bridge::Suit
source · #[repr(u8)]pub enum Suit {
Clubs = 0,
Diamonds = 1,
Hearts = 2,
Spades = 3,
}Expand description
A suit of playing cards
Suits are convertible to Strains since suits form a subset of strains.
Variants§
Clubs = 0
♣, convertible to Strain::Clubs
Diamonds = 1
♦, convertible to Strain::Diamonds
Hearts = 2
♥, convertible to Strain::Hearts
Spades = 3
♠, convertible to Strain::Spades
Implementations§
Trait Implementations§
source§impl Ord for Suit
impl Ord for Suit
source§impl PartialEq for Suit
impl PartialEq for Suit
source§impl PartialOrd for Suit
impl PartialOrd for Suit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Suit
impl Eq for Suit
impl StructuralPartialEq for Suit
Auto Trait Implementations§
impl Freeze for Suit
impl RefUnwindSafe for Suit
impl Send for Suit
impl Sync for Suit
impl Unpin for Suit
impl UnwindSafe for Suit
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