Skip to content

Glossary: Desktop Apps with Electron and Tauri

Borrowing (&)

Also written: borrow, &lines

In Rust, putting `&` before a value lets code read it without taking ownership, as in `for l in &lines`. That is why `&str` is borrowed text.

Where the book teaches it

Related terms

Rust types (u32, String, &str, Vec)