#[repr(u8)]pub enum CardSuit {
Hearts = 0,
Diamonds = 1,
Clubs = 2,
Spades = 3,
}
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardSuit
impl<'de> Deserialize<'de> for CardSuit
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 FromPrimitive for CardSuit
impl FromPrimitive for CardSuit
impl Eq for CardSuit
impl StructuralPartialEq for CardSuit
Auto Trait Implementations§
impl Freeze for CardSuit
impl RefUnwindSafe for CardSuit
impl Send for CardSuit
impl Sync for CardSuit
impl Unpin for CardSuit
impl UnwindSafe for CardSuit
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