pub fn process_labels<'a, P: 'a>(
    batch: LabeledBatch<'a, P, impl Iterator<Item = P> + 'a>,
    target_from_position: impl Fn(P) -> UiLabelTarget + 'a
) -> impl Iterator<Item = UiLabel> + 'a
Expand description

Produces ui labels from component data, allowing the caller to produce UiLabelTargets as they see fit.

Implements policy for displaying a single label vs. per-instance labels, or hiding labels.