I just gave a talk about this at the Rust NYC meetup. It allows you to write pin projections which require unsafe without having to write any unsafe code. The macros will uphold all the rules required to make it safe! One of the coolest things I think!!!
-
-
-
Ha, that's fast. This was released yesterday. Nice!
End of conversation
New conversation -
-
-
If someone is interested in how pin-project guarantee safety, "safety" section of the documentation and generated code example have detailed explanations. * "safety" section of the documentation: https://docs.rs/pin-project-internal/0.4.1/pin_project_internal/attr.pin_project.html#safety … * generated code example: https://github.com/taiki-e/pin-project/blob/ff227fed7927306c4d443ad98d08c0fb32bd9a30/examples/struct-default-expanded.rs#L63-L140 …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.