pub struct MoveUp {
command: String,
name: String,
}Expand description
Represents the Move Up command.
Fields§
§command: StringThe command character representing this move command.
name: StringThe name of this move command.
Implementations§
source§impl MoveUp
impl MoveUp
sourcepub fn new(command: &str) -> Box<dyn IMoveCommand>
pub fn new(command: &str) -> Box<dyn IMoveCommand>
Constructor.
Parameters
-
command
The command character representing this move command.
Returns
Returns a new instance of the MoveUp command represented by the IMoveCommand trait.