How do you document a Rust struct or enum in one documentation block before the type, so as to avoid polluting the contents with confusing mess?
This is what I do at the moment, which is really terrible.
/// Enumerates the possible jobblers in thingy paradigm.
enum MyEnum
{
/// Something is a blue exchange doodad thingy thing.
EnumValue1,
/// Something is meld mould mild mote.
EnumValueTheSecond,
/// Vivamus arcu mauris, interdum nec ultricies vitae, sagittis sit.
EnumValueGamma,
}
What I want is the style I would write it in Doxygen, which is clean and easy to read:
/** \enum MyEnum
* Enumerates the possible jobblers in thingy paradigm.
* \var MyEnum::EnumValue1
* Something is a blue exchange doodad thingy thing.
* \var MyEnum::EnumValueTheSecond
* Something is meld mould mild mote.
* \var MyEnum::EnumValueGamma
* Vivamus arcu mauris, interdum nec ultricies vitae, sagittis sit.
*/
enum MyEnum
{
EnumValue1,
EnumValueTheSecond,
EnumValueGamma,
};