| ▲ | nextaccountic an hour ago | |
How can a parking_lot lock be less than 1 byte? does this uses unsafe? Rust in general doesn't support bit-level objects unless you cast things to [u8] and do some shifts and masking manually (that is, like C), which of course is wildly unsafe for data structures with safety invariants | ||
| ▲ | Conscat an hour ago | parent [-] | |
This article elaborates how it works. | ||