Closed
Description
HashMap
with a custom hasher does not implement new()
. Example, with the following type alias:
type FastHashMap<K, V> = HashMap<K, V, MyFastHasher>;
let h = HashMap::new(); // Works
let f = FastHashMap::new(); // No associated function, etc.
Is there a good reason why that should happen? I've resorted to using default()
since it does the same thing AFAIK, but this seems like an unnecessary restriction.
Metadata
Metadata
Assignees
Labels
No labels