Tags→#borrowing
Borrowing Data in Scoped Rust Threads
Use std::thread::scope to share borrowed inputs with short-lived threads and safely split mutable data between workers.
Reading Lifetimes as Relationships in Rust
Understand what lifetime annotations say about borrowed values, with small examples of returned references and borrowed fields.