I've used the \internal
command in doxygen extensively over the years, and I really miss the functionality in rustdoc. It is possible to emulate it, using this technique, but it is kind of verbose (compared to the \internal
command in doxygen). That said, the rustdoc way to do it has its upsides (like how you can add sections that depend on other features as well).