Enum lib_hearts::Card
source · pub enum Card {
Queen(TypeCard, &'static str),
King(TypeCard, &'static str),
Jack(TypeCard, &'static str),
Ace(TypeCard, &'static str),
Number(u8, TypeCard, &'static str),
}
Variants§
Queen(TypeCard, &'static str)
King(TypeCard, &'static str)
Jack(TypeCard, &'static str)
Ace(TypeCard, &'static str)
Number(u8, TypeCard, &'static str)
Implementations§
Trait Implementations§
source§impl Deserialize<'static> for Card
impl Deserialize<'static> for Card
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Card> for Card
impl PartialEq<Card> for Card
source§impl PartialOrd<Card> for Card
impl PartialOrd<Card> for Card
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 Card
impl StructuralPartialEq for Card
Auto Trait Implementations§
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