pub enum GameResult {
Win,
Loss,
}Variants§
Trait Implementations§
Source§impl Clone for GameResult
impl Clone for GameResult
Source§fn clone(&self) -> GameResult
fn clone(&self) -> GameResult
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 moreSource§impl Debug for GameResult
impl Debug for GameResult
Source§impl<'de> Deserialize<'de> for GameResult
impl<'de> Deserialize<'de> for GameResult
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 PartialEq for GameResult
impl PartialEq for GameResult
Source§fn eq(&self, other: &GameResult) -> bool
fn eq(&self, other: &GameResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GameResult
Auto Trait Implementations§
impl Freeze for GameResult
impl RefUnwindSafe for GameResult
impl Send for GameResult
impl Sync for GameResult
impl Unpin for GameResult
impl UnsafeUnpin for GameResult
impl UnwindSafe for GameResult
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