Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Rust
/
Strings
Which statement about Rust string units is correct?
from Strings
Rust 1.98
intermediate
1 min
Which statement about Rust string units is correct?
chars() iterates Unicode scalar values, which may not match user-visible characters.
len() returns the number of Unicode scalar values.
Every grapheme cluster occupies one char.
UTF-8 normalization happens when a String is created.
Check
Ask AI about this kata
Report an error
previous kata
A function only searches text during the call and stores nothing. Which ordinary paramete…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload