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 = ...).
I’ve made a small code to illustrate my problem: https://play.rust-lang.org/?gist=605835a5480bc363b0675a0bd677f39f&version=stable&mode=debug
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.