rust-book.cs.brown.edu/ch04-02-references-and-borrowing.html
1 Users
0 Comments
3 Highlights
0 Notes
Tags
Top Highlights
t is illegal to use a mutable reference to a value (s3) while an immutable reference is live (s2).
References provide the ability to read and write data without consuming ownership of it. References are created with borrows (& and &mut) and used with dereferences (*), often implicitly.
F does not change throughout the body of a function
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.