3 ms·
Interesting! For some reason I thought I tried something like that and it was being forced into a static lifetime, whereas the explicit lifetime made it more fl
by brundolf 6y ago
Interesting! For some reason I thought I tried something like that and it was being forced into a static lifetime, whereas the explicit lifetime made it more flexible. Now I'm curious what it was I was trying originally that didn't work, if it wasn't this.
- steveklabnik 6y agoYou probably didn't have a reference as a parameter to the function.
- brundolf 6y agoI'm confident I did; I may have had additional parameters though: https://news.ycombinator.com/item?id=24506034 https://news.ycombinator.com/item?id=24506034