String vs. &str
blog.sulami.xyz
String vs. &str
1–3 of 3 posts
Re: String vs. &str
#2For sure one of the more concise and practical guides I've seen on the topic. Substrings make for a fantastic Northstar example.
Re: String vs. &str
#3> 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.