3 ms·
But it's also not marked at the implementation for HashMap's Index impl for instance.
by the_mitsuhiko 10mo ago
But it's also not marked at the implementation for HashMap's Index impl for instance.
- tialaramex 10mo agoThis didn't seem like a footgun to me, hats["Jim"]; will panic if, in fact "Jim" isn't one of the keys, but what did the hypothetical author expect to happen when they write this? HashMap doesn't implement IndexMut so hats["Jim"] = 26; won't even compile.
- deleted 10mo ago[deleted]