3 ms·
Yes. It wouldn't be too unidiomatic to use get_unchecked in those two places, perhaps with a debug_assert! in place. It would be really nice if this wasn't nee
by GrayShade 7y ago
Yes. It wouldn't be too unidiomatic to use get_unchecked in those two places, perhaps with a debug_assert! in place.
It would be really nice if this wasn't needed, but it's a valid use of unsafe code.