pub fn unique_labels(
entries: &[(Uuid, Vec<String>)],
fold: fn(&str) -> String,
) -> Vec<String>Expand description
Unique, cell-safe labels for (id, path) pairs, in input order; a path is
its names from the root down (one name for a flat source). An entry is
shown by its shortest form (name, then parent:name, …) that no other entry
has as any form, judged on fold after every transformation. An entry
with no such form, or only UUID-shaped ones, gets its whole path with the
shortest id prefix no entry of the same path shares, so the result does
not depend on the input order.