pub trait Player: Send + Sync {
// Required method
fn play_turn(&mut self, warrior: &Warrior);
}Expand description
An implementation of this trait is provided when rust-warrior
is executed to generate your initial game files. Your struct will
be named according to the name you chose.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".