Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`&`/`mut &` in Rust is equivalent to `const &`/`&` in C++, but with the addition that the compiler makes sure that you don't keep it around for longer than is valid.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: