When writing associated constants in a struct's implementation, those constants appear under the Methods section. Here's a minimal example:
struct Struc;
impl Struc {
const S: u64 = 0;
}
$ cargo doc
For traits though, they appear under Associated Constants:
trait Tr {
const S: u64 = 0;
}
There should also be an Associated Constants section for struct documentation.
When writing associated constants in a struct's implementation, those constants appear under the
Methodssection. Here's a minimal example:$ cargo docFor traits though, they appear under
Associated Constants:There should also be an
Associated Constantssection for struct documentation.