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
It is possible to document each enum variant created with the macro impl_var_trait! ?
impl_var_trait!(/// nl80211Commands
///
/// Enumeration from nl80211/nl80211.h:880Nl80211Cmd, u8, Cmd,
CmdUnspec => 0,
/// Request information about a wiphy or dump request to get a list of all present wiphys./// How can I document this enum variant ?CmdGetWiphy => 1,
CmdSetWiphy => 2);
Thanks
The text was updated successfully, but these errors were encountered:
Hi @Eonm, I'm going to be reworking the macros as part of #19. I can certainly add support for variant documentation. I don't tend to use it because of the number of enums I support out of the box and I'm not always entirely sure what each one represents due to lack of netlink documentation. However because it's exposed as part of the library, this makes sense to support. I'll edit this issue and will add this feature as I do #19.
jbaublitz
changed the title
[question] impl_var_trait! macro : document each enum variant
Add support for documentation of enum variants in enum generation macros
Sep 28, 2019
Hi,
It is possible to document each enum variant created with the macro impl_var_trait! ?
Thanks
The text was updated successfully, but these errors were encountered: