News for hackers. Stuff that matters.
Re:Unicode Is Awesome by paulddraper on Tuesday December 03, 2019 @10:35PM (#21699370)
It's a bit of both. Rust strings are (guaranteed valid) UTF-8 bytes.

str.len() returns the number of bytes; s.chars().count() returns the number of characters.

There are no comments on this comment yet.