anyone got a clue what's going on here?
i know what the error message means, but i don't understand what causes `'static` lifetime to be required, considering I've explicitly specified the `'a`.
there's this answer https://users.rust-lang.org/t/box-with-a-trait-object-requires-static-lifetime/35261/2 but it's from 2019 - did the language change?
what am i overlooking?
@unspeaker er. that is weird.
disclaimer: i would fumble around on this, i'm not confident i know what is causing this
does it have anything to do with deconstructing the box interior? since it's on the heap? is it possible you could pop something out of `Collection::Box` as a separate function or in a bracket expression so rustc knows that the box is out of scope when it goes for the interior value?
hmm, i'm not sure i'm parsing your suggestion. is "pop something out" something that i should try doing, or is it a possibility that i need to account for?
the goal is to compose `Render`able widgets inside the `render` method of other widgets
Collected::Box is for when they are ephemeral (owned by the render method) and Collected::Ref is for when they are stateful (owned by the parent struct), if that makes sense
and this is based on some old code that used to work quite nicely for that purpose ... but i can't reuse it because reasons :(
@unspeaker haha I've been using ratatui a bit, it definitely is more of a tool kit than a framework, lots of boilerplate left on the table imo
yeah.. the only thing I like about ratatui really is the double buffering
a couple years back i wrote my own framework on top of crossterm as was quite happy with how it let me compose things
generic over backend too (business logic could theoretically be reused with a gui backend instead of tui)
but i put it on github. and then something something trauma ostracism paranoia so now i can't reuse stuff that i've published on github because it's too connected with my past identity
@unspeaker
> on one hand who's gonna doxx me over reusing my old code, and what's the chance they're gonna do anything to me
Just make up a story how you stumbled upon that code on GH on random one day and forked it!
To keep yourself calm and as a coverup story just in case ๐
Problem solved ๐
@ironchamber