@Gankro yoooo Do you think HashMap entry API could return (&K, &mut V) on an insertion? A new fn, obvs.
-
-
-
-
Replying to @JakeGoulding
Honestly all entry stuff is out of cache, but I thought there was one for "care about keys" changes
2 replies 0 retweets 0 likes
Replying to @Gankra_
Actually, it's basically already there: https://github.com/rust-lang/rust/blob/ace517da0d1e356aa5b42f4cdee6854538591ef2/src/libstd/collections/hash/map.rs#L2233 … Just gotta throw away the mutability of the key.
7:22 AM - 28 Apr 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.