game_solver::player

Trait TwoPlayer

Source
pub trait TwoPlayer: Player + Copy {
    // Provided method
    fn other(self) -> Self { ... }
}
Expand description

Represents a two player player.

This player should always be representable by a byte.

Provided Methods§

Source

fn other(self) -> Self

Gets the other player

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.

Implementors§