#[repr(C)]pub enum StandardCardFace {
Show 14 variants
Ace = 0,
Two = 1,
Three = 2,
Four = 3,
Five = 4,
Six = 5,
Seven = 6,
Eight = 7,
Nine = 8,
Ten = 9,
Jack = 10,
King = 11,
Queen = 12,
Joker = 13,
}Expand description
Card Faces
Variants§
Ace = 0
ACE
Two = 1
Twos
Three = 2
Threes
Four = 3
Fours
Five = 4
Fives
Six = 5
Sixes
Seven = 6
Sevens
Eight = 7
Eights
Nine = 8
Nines
Ten = 9
Tens
Jack = 10
Jacks
King = 11
Kings
Queen = 12
Queens
Joker = 13
Joker
Implementations§
Trait Implementations§
Source§impl Clone for StandardCardFace
impl Clone for StandardCardFace
Source§fn clone(&self) -> StandardCardFace
fn clone(&self) -> StandardCardFace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StandardCardFace
Source§impl Debug for StandardCardFace
impl Debug for StandardCardFace
Source§impl<'de> Deserialize<'de> for StandardCardFace
impl<'de> Deserialize<'de> for StandardCardFace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StandardCardFace
impl Display for StandardCardFace
impl Eq for StandardCardFace
Source§impl From<StandardCard> for StandardCardFace
impl From<StandardCard> for StandardCardFace
Source§fn from(card: StandardCard) -> StandardCardFace
fn from(card: StandardCard) -> StandardCardFace
Converts to this type from the input type.
Source§impl From<StandardCardFace> for u8
impl From<StandardCardFace> for u8
Source§fn from(face: StandardCardFace) -> u8
fn from(face: StandardCardFace) -> u8
Converts to this type from the input type.
Source§impl FromStr for StandardCardFace
impl FromStr for StandardCardFace
Source§impl Hash for StandardCardFace
impl Hash for StandardCardFace
Source§impl Ord for StandardCardFace
impl Ord for StandardCardFace
Source§fn cmp(&self, other: &StandardCardFace) -> Ordering
fn cmp(&self, other: &StandardCardFace) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StandardCardFace
impl PartialEq for StandardCardFace
Source§fn eq(&self, other: &StandardCardFace) -> bool
fn eq(&self, other: &StandardCardFace) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StandardCardFace
impl PartialOrd for StandardCardFace
Source§impl Serialize for StandardCardFace
impl Serialize for StandardCardFace
impl StructuralPartialEq for StandardCardFace
Auto Trait Implementations§
impl Freeze for StandardCardFace
impl RefUnwindSafe for StandardCardFace
impl Send for StandardCardFace
impl Sync for StandardCardFace
impl Unpin for StandardCardFace
impl UnsafeUnpin for StandardCardFace
impl UnwindSafe for StandardCardFace
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