Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Unpin impl for UniquePtr. #1091

Merged
merged 1 commit into from Sep 2, 2022

Commits on Sep 2, 2022

  1. Add Unpin impl for UniquePtr.

    Similar to a std::boxed::Box, a UniquePtr itself can be Unpin, even if
    its target is not Unpin.
    As UniquePtr is not a self-referential type, this is safe to do.
    
    See:
    - https://doc.rust-lang.org/std/pin/index.html#unpin
    - https://doc.rust-lang.org/std/boxed/struct.Box.html#impl-Unpin
    LeonMatthesKDAB committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    f4ae0f1 View commit details
    Browse the repository at this point in the history