You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a huge roadblock to newcomers and intermediate people who end up having to work with Rc. It has wasted countless hours of mine as I research how to access X from Rc<RefCell> and every time I used the .borrow_mut() function, as all the guides said, the returned object was just another Rc<RefCell>.
I can't express how infuriating this has been in my Rust journey.
Today I stumbled across this issue again, and after over an hour of trying to debug I stumbled upon the issue linked at the top of this text. Sure enough, BorrowMut was there. I never added it, and I'm not sure what triggered it. Now that I know about this I'll be more mindful in the future, but it is incredibly difficult for inexperienced people to debug this. What do you search?
I've encountered the same problem on multiple occasions and only now do I know what is causing it.
I think if someone needs the BorrowMut trait, they are experienced enough to write their own import. If someone doesn't need it, they might never notice it pop up, and what a huge turn-off that is for someone trying out a new language.
The text was updated successfully, but these errors were encountered:
See rust-lang/rust#39232
This is a huge roadblock to newcomers and intermediate people who end up having to work with Rc. It has wasted countless hours of mine as I research how to access X from Rc<RefCell> and every time I used the .borrow_mut() function, as all the guides said, the returned object was just another Rc<RefCell>.
I can't express how infuriating this has been in my Rust journey.
Today I stumbled across this issue again, and after over an hour of trying to debug I stumbled upon the issue linked at the top of this text. Sure enough, BorrowMut was there. I never added it, and I'm not sure what triggered it. Now that I know about this I'll be more mindful in the future, but it is incredibly difficult for inexperienced people to debug this. What do you search?
I've encountered the same problem on multiple occasions and only now do I know what is causing it.
I think if someone needs the BorrowMut trait, they are experienced enough to write their own import. If someone doesn't need it, they might never notice it pop up, and what a huge turn-off that is for someone trying out a new language.
The text was updated successfully, but these errors were encountered: