Glossary coding Term Page
&str
Borrowed string slice
Core Idea
&str does not own bytes itself. It borrows a view into existing UTF-8 text, including string literals.
Why It Matters Here
Mathbong uses this term in Rust posts when comparing owned strings with borrowed slices.