pub fn flat_order<P: Borrow<ProcessSnapshot>>(
processes: &[P],
filter: &ProcessFilter,
sort: ProcessSort,
) -> Vec<usize>Expand description
The visible rows of the flat process view, in display order.
Filters first and sorts second, and returns indices into processes rather
than clones: the snapshot is shared behind an Arc and must not be copied per
tick (§10.4, §16.1).
Accepts both &[ProcessSnapshot] and &[&ProcessSnapshot] so a caller that
already narrowed the list does not have to clone rows to sort them.