| ▲ | veddan 5 hours ago | |
I think it should be possible to get rid of the Option tag without introducing any unsafe code by changing index in Gc from u32 to std::num::NonZero<u32>. | ||
| ▲ | jagged-chisel 2 hours ago | parent [-] | |
An index of 0 is valid if the collection has any content. This doesn’t solve an out-of-bounds issue with the index (i.e. an index that’s too high) | ||