pub enum GameResult {
Wins(Color, WinType),
Draw(DrawType),
}Expand description
Represents game results.
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 moreimpl Copy for GameResult
Source§impl Debug for GameResult
impl Debug for GameResult
Source§impl Display for GameResult
impl Display for GameResult
impl Eq for GameResult
Source§impl Hash for GameResult
impl Hash for GameResult
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