Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
How do you look up a HashMap<String, V> with a &str without allocating a String?
A
Only BTreeMap supports this
B
Use map["key".to_owned()]
C
map.get("key") works because String: Borrow<str>
D
You must call .to_string() first