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

You can define two `*mut`, though, in unsafe code.



A better option is to use Cell or RefCell; they allow completely safe shared mutability in single-threaded code.

https://doc.rust-lang.org/std/cell/


I'm aware of that :)

I'm just trying to decypher that cryptic sentence from the OP.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: