Enum fast_tak::GameResult
source · 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 copy 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<GameResult> for GameResult
impl PartialEq<GameResult> for GameResult
source§fn eq(&self, other: &GameResult) -> bool
fn eq(&self, other: &GameResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<GameResult> for GameResult
impl PartialOrd<GameResult> for GameResult
source§fn partial_cmp(&self, other: &GameResult) -> Option<Ordering>
fn partial_cmp(&self, other: &GameResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for GameResult
impl Eq for GameResult
impl StructuralEq for GameResult
impl StructuralPartialEq for GameResult
Auto Trait Implementations§
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