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

Only if you're returning a reference or wrapping it in something that will only ever return a reference. If you return an object by value ('owned'), then you can do what you like with it and 'mut' is just an light guardrail on that particular name for it.




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

Search: