Robbepop / modular-bitfield

Macro to generate bitfields for structs that allow for modular use of enums.
Apache License 2.0
155 stars 40 forks source link

Change the getter names to be the field name #15

Closed nwn closed 3 years ago

nwn commented 4 years ago

Closes #14. Tuple struct getters are left as-is, since their field names are invalid identifiers. This is now documented in the crate showcase.

Robbepop commented 4 years ago

This needs further documentation that states that the macro behaves differently for unnamed fields (tuples, tuple structs, tuple struct variants) and named fields (structs, struct variants) in the macro documentation.

Robbepop commented 3 years ago

Closed in favor of https://github.com/Robbepop/modular-bitfield/pull/24 for the added docs.