Skip to main content

select

Function select 

Source
pub fn select<C>(
    candidates: &[C],
    predicates: &[Predicate<C>],
    rank_by: impl Fn(&C, &C) -> Ordering,
    max: usize,
) -> SelectionReport<C>
where C: Clone,
Expand description

The full pipeline: filter → rank → bounded select, returning both the chosen candidates and the explain trace. identify maps a &C to the name used in the report’s per-candidate entries (so the report stays generic over C).

selected in the report marks every returned (post-bound) candidate.