pub enum Move<M0, M1> {
P0(M0),
P1(M1),
}
Expand description
A move in a 2-player game. This type enables defining games where each player has a different type of move.
Variants§
Trait Implementations§
impl<M0: Copy, M1: Copy> Copy for Move<M0, M1>
impl<M0: Eq, M1: Eq> Eq for Move<M0, M1>
impl<M0, M1> StructuralPartialEq for Move<M0, M1>
Auto Trait Implementations§
impl<M0, M1> Freeze for Move<M0, M1>
impl<M0, M1> RefUnwindSafe for Move<M0, M1>where
M0: RefUnwindSafe,
M1: RefUnwindSafe,
impl<M0, M1> Send for Move<M0, M1>
impl<M0, M1> Sync for Move<M0, M1>
impl<M0, M1> Unpin for Move<M0, M1>
impl<M0, M1> UnwindSafe for Move<M0, M1>where
M0: UnwindSafe,
M1: UnwindSafe,
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more