Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sebbyy
· 3y ago · 0 comments
Because Rust is pass by value.
f(&s);
is practically equal to
let r = s.borrow(); f(r);
Comments
[–]
BiteCode_dev
3y ago
If I ask why is the sky blue, telling me because blue is the color or the sky doesn't help.