pub trait Command<State> {
// Required method
fn execute(&self, state: &mut State);
}
Expand description
Trait for defining commands that can modify the editor’s state.
pub trait Command<State> {
// Required method
fn execute(&self, state: &mut State);
}
Trait for defining commands that can modify the editor’s state.