slugify
Converts s into a lowercase, hyphen-separated slug safe for URLs.
Letters and digits (Unicode included) are kept and lowercased, apostrophes are dropped, and
every other run of characters becomes a single hyphen; leading and trailing hyphens are
never produced. Diacritics are not stripped: "café" stays "café".
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 convert. |
Returns
Section titled “Returns”String
