pub fn keep_unique_elements<T: Eq + Hash>(elements: Vec<T>) -> Vec<T>
Keep the elements that are unique in the given vector of elements, i.e. that appear exactly once.