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

I recently had this problem is some rust code. I was implementing A and had some code that would decide which of several 'B's to use. I then wanted to call an internal method on A (that takes a mutable reference to A) with a mutable reference to the B that I selected. That was obviously rejected by the compiler and had to find a way around it.


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

Search: