-
Notifications
You must be signed in to change notification settings - Fork 328
Open
Labels
generic-containerGeneric vector/hasher/mapGeneric vector/hasher/map
Description
Would there be interest in adding a variant of unique
which allows you to specify the hasher? How about the name unique_default
? The name isn't great but it's the best I can think of. It is inspired by HashMap
which allows you to specify the hasher using HashMap::default()
.
Example:
iter.unique_default::<BuildHasherDefault<AHasher>>();
I have implemented this on my machine but I want to get feedback before opening a PR.
a14e
Metadata
Metadata
Assignees
Labels
generic-containerGeneric vector/hasher/mapGeneric vector/hasher/map