squish
Trims s and collapses every run of whitespace into a single space.
Tabs and line breaks count as whitespace, so a multi-line text becomes one 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 normalize. |
Returns
Section titled “Returns”String
