Settings

Theme

String vs. &str

blog.sulami.xyz

3 points by sulami a year ago · 2 comments

Reader

goldsteinq a year 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 a year ago

For sure one of the more concise and practical guides I've seen on the topic. Substrings make for a fantastic Northstar example.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection