2 ms·
In Rust, our main two string types are String and &str, which are both UTF-8 encoded. For interoperability with other things, we have additional types that you
by steveklabnik 11y ago
In Rust, our main two string types are String and &str, which are both UTF-8 encoded. For interoperability with other things, we have additional types that you can convert to/from. http://andrewbrinker.github.io/blog/2016/03/27/string-types-in-rust/ http://andrewbrinker.github.io/blog/2016/03/27/string-types-... is a recent overview in a blog post.