Hello,
I'm very new to Rust and I have some doubts about assigning a value to a mutable references,
Is there a way to assign a value to something like a &mut var
without having to dereference var
(*var = ...
).
I've made a small code to illustrate my problem: Rust Playground
Basically, I want to point to something inside a vector and expose, to the API user, a struct that looks like a normal struct and not a reference. In other languages you would override the assignment operator, but in Rust there is no such thing (as far as I can tell), I wonder if there is some other language feature that achieve something similar.