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:
struct Foo { val: bool }
const fn make_foo() { Foo { val: true } }`
const FOO: Foo = make_foo()
would print something like:
on the page for FOO.
When rustdoc renders a
constitem, 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.