pub trait ICommand {
    // Required methods
    fn execute(&self, receiver: &mut CommandTextObject);
    fn to_string(&self) -> String;
}
Expand description

Represents a general command that does something.

Required Methods§

source

fn execute(&self, receiver: &mut CommandTextObject)

Execute the command on the given CommandTextObject.

source

fn to_string(&self) -> String

Convert the command to a string representation.

Implementors§