Skip to main content

Selector

Trait Selector 

Source
pub trait Selector {
    // Required method
    fn should_select(&self, index: usize, item: &dyn SkimItem) -> bool;
}
Expand description

A selector that determines whether an item should be “pre-selected” in multi-selection mode

Required Methods§

Source

fn should_select(&self, index: usize, item: &dyn SkimItem) -> bool

Returns true if the item at the given index should be pre-selected

Implementors§