Rust's documentation is quite succinct:

"There are two kinds of reference:

Shared reference: &
Mutable reference: &mut

Which obey the following rules:

* A reference cannot outlive its referent
* A mutable reference cannot be aliased"

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!