Post #2029035
2026-05-04 15:00 UTC
One more #rustlang post! This time on niches using pattern types on nightly https://deterministic.space/niche-int-types-in-rust.html
Replies (3)
-
@dngrs@chaos.social 2026-05-04 16:54
@killercup I'm pretty excited for pattern types! You might also find https://docs.rs/deranged/0.5.8/deranged/ interesting
-
@oli@hachyderm.io 2026-05-04 17:51
@killercup oh neat, using signed integers will produce much better assembly than unsigned ints checking against 2^31
-
@thejpster@hachyderm.io 2026-05-04 19:37
@killercup every time I teach Rust to an Ada person they ask about ranged types and are sad at the reply I've had to give them.