pub enum ImpartialPlayer {
Next,
Previous,
}
Expand description
Represents a player in a zero-sum (2-player) game, where the game is impartial. That is, the only difference between players is who goes first.
Variants§
Next
The player that will play on the current game state,
Previous
The player that has played previous to this game state (or will play after Next).
Trait Implementations§
source§impl Clone for ImpartialPlayer
impl Clone for ImpartialPlayer
source§fn clone(&self) -> ImpartialPlayer
fn clone(&self) -> ImpartialPlayer
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 ImpartialPlayer
impl Debug for ImpartialPlayer
source§impl Hash for ImpartialPlayer
impl Hash for ImpartialPlayer
source§impl PartialEq for ImpartialPlayer
impl PartialEq for ImpartialPlayer
source§impl Player for ImpartialPlayer
impl Player for ImpartialPlayer
impl Copy for ImpartialPlayer
impl Eq for ImpartialPlayer
impl StructuralPartialEq for ImpartialPlayer
Auto Trait Implementations§
impl Freeze for ImpartialPlayer
impl RefUnwindSafe for ImpartialPlayer
impl Send for ImpartialPlayer
impl Sync for ImpartialPlayer
impl Unpin for ImpartialPlayer
impl UnwindSafe for ImpartialPlayer
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
)