3 ms·
Rust seems to do fine with ZSTs somehow.
by firstlink 4y ago
Rust seems to do fine with ZSTs somehow.
- kibwen 4y agoZSTs work splendidly in Safe Rust, but you do need to consider them if you're writing unsafe generic code. Here's the relevant section of the Rustonomicon: https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-siz... .