Implement Display
for structs in std::char
#1848
Labels
T-libs-api
Relevant to the library API team, which will review and decide on the RFC.
Right now,
EscapeUnicode
,EscapeDefault
,EscapeDebug
,ToLowercase
, andToUppercase
do not implementDisplay
. I think that this would be rather useful, because then you could simplyprint!("{}", 'ß'.to_uppercase())
instead of having to do a for loop or convert to aString
(which is costly).Code is implemented in rust-lang/rust#38909.
The text was updated successfully, but these errors were encountered: