pub trait Play {
// Required methods
fn name(&self) -> &'static str;
fn start(&self);
// Provided method
fn instructions(&self) -> Option<&'static str> { ... }
}Expand description
The main trait to classify a struct as a playable game.
Required Methods§
Provided Methods§
Sourcefn instructions(&self) -> Option<&'static str>
fn instructions(&self) -> Option<&'static str>
optionally returns the instructions of the game