3 ms·
I think you just proved his point on how hard it is to understand and correctly use Pin.
by senorrib 2y ago
I think you just proved his point on how hard it is to understand and correctly use Pin.
- withoutboats3 2y agoI agree with that assessment of Pin. That's why the second post I linked to presents a set of features that would make it as easy to use as mutability (pinning is really the dual of immutability: an immutable place cannot be assigned into, whereas a pinned place cannot be moved out of).
- oneshtein 2y agoPinned is life time, similar to 'static, but written as Pin!() for an unknown reason.