Looking for examples of mathematical notation in Rust documentation

I’d like to include some simple-ish mathematical expressions in Rust documentation that will be auto-formatted by rustdoc to be a part of the documentation for a crate or module or item.

Can anyone who’s done this successfully let us know which Markdown and other documentation toolchain settings you used?

Thanks in advance,

Stu

I’m not sure if it’s doable with rustdoc.

If you’re happy with a separate tool, mdbook has MathJax support which produces Math-sy looking equations.