|
|
|
|
|
by eximius
2586 days ago
|
|
Part of the problem is conceptualizing this as a reference (which, admittedly, it is without optimization). Instead, this is a borrow which indicates that the callee will not mutate the argument. It makes more sense in this context. |
|
Isn't that also the official name of the feature in Rust? Isn't &T in Rust pronounced "reference to T" and "&mut T" pronounced "mutable reference to T"? That is the impression I get from: https://doc.rust-lang.org/book/ch04-02-references-and-borrow...