reference
A way to use a value without taking ownership of it.
A reference &T borrows a value: it points to it without owning it and must not outlive it.
Loading interactive…
Examples
letter_count(&name)lendsnameto the function, somaincan still printnameafterwards.
See also