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.
Glossary: Desktop Apps with Electron and Tauri
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.