3 ms·
I believe the parent poster was comparing &str and String, not Box<str> and String.
by Macha 4y ago
I believe the parent poster was comparing &str and String, not Box<str> and String.
- sirwhinesalot 4y agoYeah in my original post (before the edit) I made a similar simplification with immutable vs mutable (since that's how they are commonly used), but the correct distinction is str vs String. You can have &str and &String and you can have &mut str and &mut String, and Box<str> and String. All cases exist.