3 ms·
The function isn’t borrowing the reference. It’s using the reference to borrow the value thats being pointed to by the reference.
by nicoburns 4y ago
The function isn’t borrowing the reference. It’s using the reference to borrow the value thats being pointed to by the reference.
- legerdemain 4y agoI was looking for the word "reborrowing," which I think is crucial for beginners trying to form an effective mental model of Rust semantics.