pub enum PartizanPlayer {
Left,
Right,
}
Expand description
Represents a player in a zero-sum (2-player) game,
where the game is partizan. That is,
a player can affect the Game::possible_moves
function,
or players have different winning outcomes.
Variants§
Trait Implementations§
source§impl Clone for PartizanPlayer
impl Clone for PartizanPlayer
source§fn clone(&self) -> PartizanPlayer
fn clone(&self) -> PartizanPlayer
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 PartizanPlayer
impl Debug for PartizanPlayer
source§impl Hash for PartizanPlayer
impl Hash for PartizanPlayer
source§impl PartialEq for PartizanPlayer
impl PartialEq for PartizanPlayer
source§impl Player for PartizanPlayer
impl Player for PartizanPlayer
impl Copy for PartizanPlayer
impl Eq for PartizanPlayer
impl StructuralPartialEq for PartizanPlayer
Auto Trait Implementations§
impl Freeze for PartizanPlayer
impl RefUnwindSafe for PartizanPlayer
impl Send for PartizanPlayer
impl Sync for PartizanPlayer
impl Unpin for PartizanPlayer
impl UnwindSafe for PartizanPlayer
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
)