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
use std::marker::PhantomData;structHashLike<K,V,H>(PhantomData<K>,PhantomData<V>,H);structDefaultHasher;impl<K,V>HashLike<K,V,DefaultHasher>{fnnew() -> HashLike<K,V,DefaultHasher>{HashLike(PhantomData,PhantomData,DefaultHasher)}}// But what about another crate...structAnotherHasher;impl<K,V>HashLike<K,V,AnotherHasher>{fnnew() -> HashLike<K,V,AnotherHasher>{HashLike(PhantomData,PhantomData,AnotherHasher)}}fnmain(){}
From Reddit:
The saddest thing is the inability to use
new
orwith_capacity
.The text was updated successfully, but these errors were encountered: