(no title)
sakisv | 1 month ago
What I _do_ find annoying though and I cannot wrap my head around are lifetimes. Every time I think I understand it, I end up getting it wrong.
sakisv | 1 month ago
What I _do_ find annoying though and I cannot wrap my head around are lifetimes. Every time I think I understand it, I end up getting it wrong.
Maxatar|1 month ago
ViewTrick1002|1 month ago
sakisv|1 month ago
culebron21|1 month ago
Then I understood that not everything needs to be tied to the same lifetime. In this example, MyRef should be tied to the MyStruct, but not to the `key`: