3 ms·
Thanks. I’m wondering if this allows for non-static data at all? Maybe it has to be either static or copyable?
by skybrian 3y ago
Thanks. I’m wondering if this allows for non-static data at all? Maybe it has to be either static or copyable?
- Evan-Almloff 3y agoAll data you insert into a generational box needs to be allowed to last for the 'static lifetime (have no internal temporary pointers). You cannot insert something like &'a str into a generational box