This is the long-awaited Rust crate that solves the problem of uppercasing the first letter of a string in Rust.
Full disclosure: this solution was shamelessly lifted from the leading response over on StackOverflow by [Shepmaster].
```rust let lc_str = "apple";
// Using FromStr/parse and Display/tostring methods:
use ucfirst::Ucfirst;
let ucstr = lcstr.parse::
// Using ucfirst function: use ucfirst::ucfirst; let ucstr = ucfirst(lcstr); asserteq!(ucstr, "Apple"); ```
See also the [ccase
] CLI utility and [convert_case
] library crates.