Summary
Summary
Chapter Key Takeaways
- References borrow data without transferring ownership.
- Aliasing XOR Mutability: either multiple
&Tor exactly one&mut T. - Dangling references are prohibited at compile time.
- Slices (
&[T]and&str) provide fat-pointer views (pointer + length) into contiguous memory without allocation.