rustdoc: When rendering const values, show ADTs in addition to primitives. #87038
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
When rustdoc renders a
const
item, it will print the actual (evaluated) value for primitives. For example, https://doc.rust-lang.org/std/i32/constant.MAX.html:It would be useful to do the same for ADT values (structs, enums, and unions). For example:
would print something like:
on the page for
FOO
.The text was updated successfully, but these errors were encountered: