News for hackers. Stuff that matters.
Re:Rust 1.50 by jsheard on Thursday February 11, 2021 @01:12PM (#26105065)
NonMax types would be nice to have, since the natural "null" value for an index into some linear data structure is the highest one

In the meantime it can be done by wrapping NonZero and storing !value, but that's a (tiny) runtime overhead on each get/set

There are no comments on this comment yet.