Dear friends of Rust,
I started diving into
RefCell because I have a struct which has a single mutable Option field. I don’t know how to change this field after checking for
None, because in the way I did it, it calls for the borrow checker who complains that I cannot borrow mutable variables more than once. This Rust Playground boils it down to the issue.
Every help is appreciated! Thanks in advance!