Skip to main content

keep_place

Function keep_place 

pub fn keep_place(
    next: Vec<Entry>,
    kept: Option<(&str, usize)>,
) -> (Vec<Entry>, Option<usize>)
Expand description

next with the row kept (the one the person selected) back at place where it still matches: a still-matching selected row keeps its place while the rest narrow around it. Returns the rows and where the selection is now.