You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HashMap with a custom hasher does not implement new(). Example, with the following type alias:
typeFastHashMap<K,V> = HashMap<K,V,MyFastHasher>;let h = HashMap::new();// Workslet 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.
The text was updated successfully, but these errors were encountered:
HashMap
with a custom hasher does not implementnew()
. Example, with the following type alias: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.The text was updated successfully, but these errors were encountered: