#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

#1974 in Text processing


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