Twitter Feed: Post

Twitter Feed

@zkat__ ("kat marchán") wrote:

Ok Rust folks: I mostly get (and like) the string situation in Rust. It's something I've learned to appreciate.

But one thing still gets me:

What is the difference between &str and &String? I feel as though sometimes they're interchangeable, and sometimes they're... not? What?