News for hackers. Stuff that matters.
Re:String vs. &str by skeptrune on Thursday February 06, 2025 @01:36AM (#42959693)
For 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 by goldsteinq on Thursday February 06, 2025 @06:31AM (#42961371)
> 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.