Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
What is string interning and how is it commonly done in Rust?
A
Encrypting strings
B
Storing each distinct string once and referring to it by a small ID or shared pointer (e.g. HashMap<Arc<str>, u32> or a crate like lasso)
C
Converting strings to uppercase
D
Compressing strings