Strings
&str
s and Vec
s and slices (and Unicode) – oh, my!
This episode, I take a deep dive on strings in Rust, looking at the differences between String
and &str
, discussing Unicode a bit, and then expanding the discussion to think about how these types relate to the types they’re built on (like Vec
).
str
docs:
String
(Thanks to the couple people donating who opted out of the reward tier, as well. You know who you are!)