Amanieu / intrusive-rs

Intrusive collections for Rust
Apache License 2.0
412 stars 48 forks source link

Add support for Pin<P> #51

Closed jynnantonix closed 3 years ago

jynnantonix commented 4 years ago

Add support for Pin pointer types to DefaultPointerOps so that users can use a type like Pin<Box> inside the intrusive_adapter! macro. Intrusive collections inherently rely on the values having stable memory locations and don't provide a way to get a mutable reference to the value so they uphold the guarantees of pinning.

jynnantonix commented 4 years ago

Looks like the build failed because pin_into_inner is an unstable feature on rust 1.36. Should I also bump the minimum supported compiler version to 1.39?

Amanieu commented 4 years ago

Yes just bump the version.