Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Strings

EssentialOwned · borrowed · UTF-8Planned

This chapter will compare String, &String, &str, and string literals; show deref coercion at ordinary call sites; explain UTF-8 boundaries; and use function signatures to make allocation choices visible.