Conceptual
Login

References and Borrowing

A reference (&T or &mut T) borrows access to a value without taking ownership, so the owner still frees it. Borrows are statically checked to never outlive the value they point into.

This Concept is waiting for its first lesson!

A reference (&T or &mut T) borrows access to a value without taking ownership, so the owner still frees it. Borrows are statically checked to never outlive the value they point into.

Are you a teacher? Sign in to start contributing.

Sign In