Glossary coding Term Page

&str

Borrowed string slice

and-str #coding#rust
Korean version

Related Concepts

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.

Posts Mentioning This Concept