Feature Request: Improve constants generated docs

I am not sure this is the right place to post this, but I was going to open an issue on GitHub, and it says to post all feature requests in this forum.

My motivation is more clear if you read this issue here (Improve `const` generated docs · Issue #426 · iliekturtles/uom · GitHub).

Basically, I think it would be great to have a way to annotate "custom doc format" for constant types. Similar to what currently happens if you have:

pub const VALUE: f64 = 1.0 * 5.0

And you get a comment in the documentation like:

pub const VALUE: f64= _; // 5f64

One option would be to wait for const-trait support (any day now :sob:) and use that to evaluate any const Display or const Debug.

Without that, I'm not sure how you would even approach telling rustdoc how to render your type.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.