4 ms·
Because Rust is pass by value. f(&s); is practically equal to let r = s.borrow(); f(r);
by sebbyy 4y ago
Because Rust is pass by value.
f(&s);
is practically equal to
let r = s.borrow();
f(r);
- BiteCode_dev 4y agoIf I ask why is the sky blue, telling me because blue is the color or the sky doesn't help.