You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.
Currently the register macros do their job but not terribly well. Read/modify/write is an extremely common task, especially when modifying a single bitfield within a register, yet this task is rather painful with the current interfaces.
The mchck project has shown that having bitfields represented in the type system makes code both substantially easier to read and write.
There have been discussions about adding native bitfield support to Rust in the past. A Rust issue has been created, as well as an RFC. Servo has a bitfield macro that may be ripe for plucking and improvement. Unfortunately, the macro system isn't terribly great at generating accessors until concat_idents! is useful.
The text was updated successfully, but these errors were encountered:
Currently the register macros do their job but not terribly well. Read/modify/write is an extremely common task, especially when modifying a single bitfield within a register, yet this task is rather painful with the current interfaces.
The mchck project has shown that having bitfields represented in the type system makes code both substantially easier to read and write.
There have been discussions about adding native bitfield support to Rust in the past. A Rust issue has been created, as well as an RFC. Servo has a bitfield macro that may be ripe for plucking and improvement. Unfortunately, the macro system isn't terribly great at generating accessors until
concat_idents!
is useful.The text was updated successfully, but these errors were encountered: