//! Amalgamation of random funcions
usecore::hash::Hash;usestd::collections::HashSet;/// All elements of the collection are unique?
pubfnall_unique_elements<T>(iter: T)->boolwhere
T: IntoIterator,
T::Item: Eq + Hash,
{letmut uniq =HashSet::new();
iter.into_iter().all(move|x| uniq.insert(x))}