Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
String vs. &str
(opens in new tab)
(blog.sulami.xyz)
3 points
sulami
1y ago
2 comments
Share
String vs. &str | Better HN
2 comments
default
newest
oldest
goldsteinq
1y 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.
skeptrune
1y ago
For sure one of the more concise and practical guides I've seen on the topic. Substrings make for a fantastic Northstar example.
j
/
k
navigate · click thread line to collapse