pub enum Suit {
S = 0,
H = 1,
D = 2,
C = 3,
}Expand description
Card suit representation.
Represents the four card suits (spades, hearts, diamonds, clubs), with parsing support and conversion utilities.
Variants§
Implementations§
Trait Implementations§
Source§impl BitOrAssign<Suit> for Suit4
impl BitOrAssign<Suit> for Suit4
Source§fn bitor_assign(&mut self, rhs: Suit)
fn bitor_assign(&mut self, rhs: Suit)
Performs the
|= operation. Read moreSource§impl FromIterator<Suit> for Suit4
impl FromIterator<Suit> for Suit4
Source§impl Ord for Suit
impl Ord for Suit
Source§impl PartialOrd for Suit
impl PartialOrd for Suit
impl 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