Skip to main content

rank_with

Function rank_with 

Source
pub fn rank_with(
    entries: &[PaletteEntry],
    query: &str,
    recent: &[CommandId],
    applies: impl Fn(&CommandId) -> bool,
    label: impl Fn(&PaletteEntry) -> String,
) -> Vec<Ranked>
Expand description

As rank, each entry shown and matched as label gives it (the palette passes the label in the interface’s language: shown).