for future reference, i needed a signature of <'a, 'b: 'a, P: 'a + 'b + std::clone::Clone>
-
Show this thread
-
Replying to @tef_ebooks
you using arenas or something? (mostly curious to see what caused this, been looking for good examples to motivate multiple lifetimes with bounds)
1 reply 0 retweets 1 like -
Replying to @ManishEarth
here's a reduced example https://gist.github.com/tef/7027834f7349437e8d201607019803e2 … although that might not explain *why* i am doing it, but *what*, at least
1 reply 0 retweets 0 likes -
Replying to @tef_ebooks @ManishEarth
i have some shared arena, i create a not-shared collector/session, then create transactions with mut ref to session & ref to arena let mut arena = ... let mut session = arena.session(); { let mut txn = session.txn() // or arena.transaction(&mut session) ... }
1 reply 0 retweets 0 likes -
Replying to @tef_ebooks @ManishEarth
the reason is that i wanted to decouple collection lifetime from transaction lifetime, but also wanted to ensure that collectors wouldn't be shared across transactions, so i can do non atomic vecs to keep deleted objects
1 reply 0 retweets 0 likes -
Replying to @tef_ebooks @ManishEarth
this was an absolute pain in the ass to find out how to do it because certain things *seemed* to work but didn't
2 replies 0 retweets 2 likes -
Replying to @tef_ebooks @ManishEarth
btw
@sgrif mentioned that some of the lifetimes *should* have been inferred, like P: 'a1 reply 0 retweets 1 like -
Replying to @tef_ebooks @ManishEarth
Specifically I thought the bounds on session should already be today
1 reply 0 retweets 0 likes
Less sure about action but I know we want to infer them if we don't already (since everything other than 'b: 'a is just "this makes it compile")
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.