You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using the library for a project and I notice that get_or_set_with and try_get_or_set_with return a &mut V and not a &V.
I wonder why you do it this way (because, according to the course, it's not possible to have 2 get_or_set values at the same time without having problems with the compiler). In my case, I need a &V and I would find it more relevant to prefix _mut and then return &mut V.
The text was updated successfully, but these errors were encountered:
Hi, I'm using the library for a project and I notice that
get_or_set_with
andtry_get_or_set_with
return a&mut V
and not a&V
.I wonder why you do it this way (because, according to the course, it's not possible to have 2 get_or_set values at the same time without having problems with the compiler). In my case, I need a
&V
and I would find it more relevant to prefix _mut and then return&mut V
.The text was updated successfully, but these errors were encountered: