Trait modalkit::actions::Commandable

source ·
pub trait Commandable<C, I>
where C: Command, I: ApplicationInfo,
{ // Required method fn command( &mut self, action: &CommandAction, ctx: &C::Context ) -> UIResult<Vec<(C::Action, C::Context)>, I>; }
Expand description

Trait for objects which can process CommandActions.

Required Methods§

source

fn command( &mut self, action: &CommandAction, ctx: &C::Context ) -> UIResult<Vec<(C::Action, C::Context)>, I>

Execute a command action.

Implementors§

source§

impl<C, I> Commandable<C, I> for CommandMachine<C>
where C: Command<Action = Action<I>, Context = EditContext>, I: ApplicationInfo,