pub enum GameResult {
Winner {
color: Color,
reason: Reason,
},
Draw {
reason: Reason,
},
Ongoing,
}
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 · 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 Default for GameResult
impl Default for GameResult
Source§fn default() -> GameResult
fn default() -> GameResult
Returns the “default value” for a type. Read more
Source§impl Ord for GameResult
impl Ord for GameResult
Source§fn cmp(&self, other: &GameResult) -> Ordering
fn cmp(&self, other: &GameResult) -> Ordering
1.21.0 · 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 PartialEq for GameResult
impl PartialEq for GameResult
Source§impl PartialOrd for GameResult
impl PartialOrd for GameResult
Source§impl TryFrom<GameResult> for GameResult
impl TryFrom<GameResult> for GameResult
impl Copy for GameResult
impl Eq for GameResult
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 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