rust-bitfield
rust-bitfield copied to clipboard
Use the :vis fragment specifier
Would this allow you to add visibility modifiers to methods? IE u8, pub foo, pub set_foo: x, y;
I can't seem to access the methods from other modules since they are private
You can already add a pub
modifier to a field. This will make the two method public. There is an example in the bitfield_fields
documentation.
The goal of this issue is to simplify the code and support the more advanced visibility modifier like pub(crate)
.