Dark Hacker News
new
|
best
|
ask
|
show
|
jobs
String vs. &str | Dark Hacker News
String vs. &str
(blog.sulami.xyz)
3 points
by
sulami
1 year ago
| 2 comments
goldsteinq
1 year ago
|
next
[−]
> 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.
skeptrune
1 year ago
|
next
[−]
For sure one of the more concise and practical guides I've seen on the topic. Substrings make for a fantastic Northstar example.