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

to be pedantic &mut is still a borrow not ownership, as another simplification the difference is that &mut can modify a value but must keep the borrowed value in a valid state, while full ownership can destroy a value


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

Search: