pub struct NPlayerPartizanConst<const N: usize>(/* private fields */);
Expand description
Represents a player in an N-player game.
Implementations§
source§impl<const N: usize> NPlayerPartizanConst<N>
impl<const N: usize> NPlayerPartizanConst<N>
pub fn new(index: usize) -> NPlayerPartizanConst<N>
pub fn new_unchecked(index: usize) -> NPlayerPartizanConst<N>
Trait Implementations§
source§impl<const N: usize> Ord for NPlayerPartizanConst<N>
impl<const N: usize> Ord for NPlayerPartizanConst<N>
source§fn cmp(&self, other: &NPlayerPartizanConst<N>) -> Ordering
fn cmp(&self, other: &NPlayerPartizanConst<N>) -> 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<const N: usize> PartialEq for NPlayerPartizanConst<N>
impl<const N: usize> PartialEq for NPlayerPartizanConst<N>
source§impl<const N: usize> PartialOrd for NPlayerPartizanConst<N>
impl<const N: usize> PartialOrd for NPlayerPartizanConst<N>
source§impl<const N: usize> Player for NPlayerPartizanConst<N>
impl<const N: usize> Player for NPlayerPartizanConst<N>
impl<const N: usize> Eq for NPlayerPartizanConst<N>
impl<const N: usize> StructuralPartialEq for NPlayerPartizanConst<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for NPlayerPartizanConst<N>
impl<const N: usize> RefUnwindSafe for NPlayerPartizanConst<N>
impl<const N: usize> Send for NPlayerPartizanConst<N>
impl<const N: usize> Sync for NPlayerPartizanConst<N>
impl<const N: usize> Unpin for NPlayerPartizanConst<N>
impl<const N: usize> UnwindSafe for NPlayerPartizanConst<N>
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