by Rusky · 1y ago · 0 comments
[1] e.g. https://internals.rust-lang.org/t/pre-rfc-allow-array-stride...
In principle, you Rust could create something like std::num::NonZero and its corresponding sealed trait ZeroablePrimitive to mark that two bits are unused. But that doesn't exist yet as far as I know.
Also aspirations to use pattern types for this sort of thing: https://github.com/rust-lang/rust/issues/135996