Trait Command

Source
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.

Required Methods§

Source

fn execute(&self, state: &mut State)

Implementors§