pub trait Player: Sized + Eq {
// Required methods
fn count() -> usize;
fn idx(&self) -> usize;
fn next(self) -> Self;
fn previous(self) -> Self;
fn turn(self) -> Self;
}
Expand description
Represents a player.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.