Hacker News new | past | comments | ask | show | jobs | submit login

you can have "escaping" closure. But you cannot return something that outlives it's lifetime. So the closure must own data, not merely refer to it. The online Rust book should habe the details.



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

Search: