3 ms·
> the former is provided by the bitflags crate: https://crates.io/crates/bitflags https://crates.io/crates/bitflags The linked crate appears to implement an un
by aw1621107 6y ago
> the former is provided by the bitflags crate: https://crates.io/crates/bitflags https://crates.io/crates/bitflags
The linked crate appears to implement an unrelated feature. c2rust-bitfields [0] or rust-bitfield [1] might be better examples.
Rust's working on adding native support for bitfields, but it seems that that might be a while out at this time [2, 3]
[0]: https://crates.io/crates/c2rust-bitfields https://crates.io/crates/c2rust-bitfields
[1]: https://github.com/dzamlo/rust-bitfield https://github.com/dzamlo/rust-bitfield
[2]: https://github.com/rust-lang/rfcs/issues/314 https://github.com/rust-lang/rfcs/issues/314
[3]: https://github.com/rust-lang/rfcs/pull/3064 https://github.com/rust-lang/rfcs/pull/3064