▲ | dayvster 3 days ago | ||||||||||||||||
this is an excellent example do you mind if I examine it a bit closer and perhaps use it in my article? | |||||||||||||||||
▲ | K0nserv 3 days ago | parent [-] | ||||||||||||||||
Yes of course, although, as I said in a sibling comment, it's a bit convoluted as an example. The fundamental problem is that the xor mutable and shared reference rule gets in your way when you access separate fields through &self and &mut self even if the borrows are non-overlapping. There has been discussion to solve this particular problem[0]. | |||||||||||||||||
|