pub trait IMoveCommand {
// Required methods
fn get_command(&self) -> &str;
fn get_name(&self) -> &str;
fn execute(&self);
// Provided method
fn show(&self) { ... }
}
Required Methods§
sourcefn get_command(&self) -> &str
fn get_command(&self) -> &str
Retrieve the command character representing the move command.