capitalize
Uppercases the first character of s and leaves the rest untouched.
Unicode-aware: a character whose uppercase form is several characters
(ß -> SS) is expanded accordingly.
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 capitalize. |
Returns
Section titled “Returns”String
