News for hackers. Stuff that matters.
Re:Rust 2024 the Year of Everywhere? by steveklabnik on Friday September 23, 2022 @06:13PM (#32957733)
pin is purely a property of a pointer, so Pin<i32> doesn’t make sense.

While you’re right that Box gives you a stable address, you can still move out of a Box, or swap something into the Box. Pin<Box<P>> prevents that.

There are no comments on this comment yet.