Trait IntoAction

Source
pub trait IntoAction {
    // Required method
    fn into_action(self, action_type: ActionType) -> Action;
}
Expand description

Trait for types that can be converted into an action

Required Methods§

Source

fn into_action(self, action_type: ActionType) -> Action

Convert into an action

Implementations on Foreign Types§

Source§

impl<F> IntoAction for (&str, F)
where F: Fn(&mut Context, &Event) + Send + Sync + 'static,

Source§

fn into_action(self, action_type: ActionType) -> Action

Implementors§