pub enum GameScoreOutcome {
Win(usize),
Loss(usize),
Tie,
}
Expand description
Represents an outcome of a game derived by a score and a valid instance of a game.
Variants§
Win(usize)
The inner field represents the amount of moves till a win.
Loss(usize)
The inner field represents the amount of moves till a loss.
Tie
Trait Implementations§
source§impl Clone for GameScoreOutcome
impl Clone for GameScoreOutcome
source§fn clone(&self) -> GameScoreOutcome
fn clone(&self) -> GameScoreOutcome
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 PartialEq for GameScoreOutcome
impl PartialEq for GameScoreOutcome
impl Copy for GameScoreOutcome
impl Eq for GameScoreOutcome
impl StructuralPartialEq for GameScoreOutcome
Auto Trait Implementations§
impl Freeze for GameScoreOutcome
impl RefUnwindSafe for GameScoreOutcome
impl Send for GameScoreOutcome
impl Sync for GameScoreOutcome
impl Unpin for GameScoreOutcome
impl UnwindSafe for GameScoreOutcome
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)