Introducing UnpinCell, a new cell type in Rust that unpins the contained object, offering a simpler way to handle mutable access through pinned references. This resolves unsoundness with Drop by ensuring pinned references can project as long as specific criteria are met. UnpinCell provides a barrier making objects inside never witnessed as pinned, improving on the previous pinned fields design.
Sort: