Skip to content

Glossary: Rust Basics

String

Also written: Strings

Rust's owned, growable text type, whose contents live on the heap. It differs from `&str`, the borrowed kind.

Where the book teaches it

Related terms

String literalHeap