#[repr(u8)]pub enum CardVal {
Ten = 10,
Jack = 2,
Queen = 3,
King = 4,
Ace = 11,
}
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardVal
impl<'de> Deserialize<'de> for CardVal
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 CardVal
impl FromPrimitive for CardVal
Source§impl Ord for CardVal
impl Ord for CardVal
Source§impl PartialOrd for CardVal
impl PartialOrd for CardVal
impl Eq for CardVal
impl StructuralPartialEq for CardVal
Auto Trait Implementations§
impl Freeze for CardVal
impl RefUnwindSafe for CardVal
impl Send for CardVal
impl Sync for CardVal
impl Unpin for CardVal
impl UnwindSafe for CardVal
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