inline_code
Wraps text in a Markdown code span, using enough backticks for the text to show literally.
The fence is one backtick longer than the longest run of backticks inside, so text with a single backtick gets a two-backtick fence, text with two gets three, and so on. When the text starts or ends with a backtick, or starts and ends with a space, one space of padding is added on each side (Markdown strips exactly that) so nothing is lost. Line breaks are not handled: Markdown turns them into spaces.
Import
Section titled “Import”Cargo feature markdown (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
text | &str | The text to show as code. |
Returns
Section titled “Returns”String — The code span, such as `cargo test`.
