Skip to main content

One doc tagged with "utf8"

View all tags

Storing UTF-8 Text with Strings (`String`)

We've already touched on Rust's two main string types, &str and String. In this article, we're going to take a deeper dive into the String type, which is a growable, mutable, owned, UTF-8 encoded string type. It is one of the most common and useful collection types in Rust.