Skip to content

Add two ways to change entries in an n_key_set

Nick Mathewson requested to merge nickm/arti:by_ids_mutate into main

With the first way, we take a function that accepts a &mut V. This function can change the keys: it does, then the entry is removed from its previous position and inserted at the new one, possibly displacing others.

For the second way, we expose a set of unsafe functions that expose a &mut V. The caller must pinky-swear not to change any keys on the reference.

Merge request reports