#string #case #conversion #convert

case_convert

Converts the first letter of a Rust String to uppercase

1 unstable release

0.1.0 Jan 13, 2024

#1515 in Text processing

23 downloads per month
Used in world-time-api

MIT license

3KB

This library implements case conversion methods for the String type.
For now there is only one method to convert the first letter of a Rust String to uppercase.

Credit : this method's code comes from this post

use case_convert::CaseConvert;
let s = String::from("test");
assert_eq!(s.uppercase_first(), "Test");

0.1.0 : Converts to uppercase the first letter of a string

No runtime deps