pub fn has_duplicates(items: &[(Hash, Hash)]) -> bool
Whether the leaves contain a duplicate key: such a set has no tree.