Add bound check to get_unchecked for enabled debug assertions?

I suggested debug assertions on get_unchecked and get_unchecked_mut back in this thead and was quickly shot down by the fact that… yeah, people do this.

Of note there is bluss’ current solution: https://crates.io/crates/unchecked-index

2 Likes