3 ms·
I think it's, um, borrowed from C++'s pass by value / reference syntax. To be honest I'm still a bit muddled about how &x in Rust relates to &x in C++.
by Joeboy 4y ago
I think it's, um, borrowed from C++'s pass by value / reference syntax. To be honest I'm still a bit muddled about how &x in Rust relates to &x in C++.
- jeremyjh 4y ago& is about the same as const & in C++, just swapping the default for immutability.