Two neat explanations I've picked up from @stjepang:
- 'static lifetime means there's no borrows
- Unpin means there's no self-referential fields (which is a specific kind of borrow)
Has helped a lot when trying to reason about both!
-
Show this thread
-
Replying to @yoshuawuyts @stjepang
I can't understand why 'static would mean there's no borrow, do you mind elaborating a bit?
2 replies 0 retweets 1 like
Replying to @gustavohoa @stjepang
yosh Retweeted Saoirse Shipwreckt
Hah, that's really just about it. More or less the answer to "what can be referred to using the 'static lifetime" is "anything that doesn't borrow" More info:https://twitter.com/withoutboats/status/1147095246653796352 …
yosh added,
8:20 AM - 5 Jul 2019
0 replies
0 retweets
1 like
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.