Skip to main content

action_hits

Function action_hits 

Source
pub fn action_hits(
    specs: &[ActionSpec],
    controls: &[ControlDecl],
    query: &str,
    limit: usize,
) -> Vec<ActionHit>
Expand description

The actions of specs that match query, best first, at most limit: each as its declaration in controls says, a button where none does. Only actions a control can run are listed: those asking for nothing more, and those whose declared control asks for it.