Can I have mutable reference to struct A in B if A contains B? say, I have two structs :

    struct Game { ui : UI }; 
    struct UI { game : &amp;mut Game }; // &lt;= ???

can I do something like this in rust?

&amp;#x200B;

Solution : I didn't really need to have `&amp;mut Game` inside `UI` . I just implemented event system where `UI` in `update()` returns `Vec&lt;UIEvent&gt;` back to `Game` and `Game` change its state according to these events.