dedent
Strips the indentation shared by every non-blank line of s, and drops one leading and one
trailing blank line.
Lets a multi-line string literal be indented with the surrounding code without that
indentation leaking into the value. Indentation is counted in whitespace characters, and
lines are split on '\n' only (a '\r' stays on its line).
Import
Section titled “Import”Cargo feature string (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
s | &str | The text to strip the shared indentation from. |
Returns
Section titled “Returns”String
