alekratz / enum-methods

Method generation for enumerated types in Rust
Apache License 2.0
12 stars 3 forks source link

Insert doc comments for generated functions #17

Open TheDan64 opened 6 years ago

TheDan64 commented 6 years ago

It's currently impossible to apply #[deny(missing_docs)] to a module which uses EnumAsGetters/EnumIntoGetters/EnumIsA and friends because the generated functions do not have any doc comment. It'd be great to do so, even if it's not very unqiue or simply mentions that it is autogenerated.

alekratz commented 6 years ago

Hey, that's a good idea. If you want to do this, go for it. Otherwise I'll try to get to it this weekend.