6 ms·
String vs. &str
- skeptrune 2y agoFor sure one of the more concise and practical guides I've seen on the topic. Substrings make for a fantastic Northstar example.
- goldsteinq 2y ago> This means it has a known size (The same as a usize.) Double that of a usize, since str is an unsized type and needs a fat pointer.