#[repr(C)]pub enum Weapon {
Rock = 0,
Paper = 1,
Scissors = 2,
}Expand description
Weapons for Rock paper scissors
Variants§
Rock = 0
A rock, it beats scissors
Paper = 1
Paper, it beats a rock
Scissors = 2
Scissors, it beats paper
Implementations§
Trait Implementations§
impl Copy for Weapon
Source§impl<'de> Deserialize<'de> for Weapon
impl<'de> Deserialize<'de> for Weapon
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
impl Eq for Weapon
Source§impl Ord for Weapon
impl Ord for Weapon
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 PartialOrd for Weapon
impl PartialOrd for Weapon
impl StructuralPartialEq for Weapon
Auto Trait Implementations§
impl Freeze for Weapon
impl RefUnwindSafe for Weapon
impl Send for Weapon
impl Sync for Weapon
impl Unpin for Weapon
impl UnsafeUnpin for Weapon
impl UnwindSafe for Weapon
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