2 releases

0.9.1 Apr 8, 2021
0.8.0 Sep 11, 2019
0.7.0 May 6, 2019
0.6.0 Feb 7, 2019
0.2.2 Nov 22, 2018

#2318 in Rust patterns

Download history 27/week @ 2024-03-11 10/week @ 2024-03-18 30/week @ 2024-04-01 19/week @ 2024-04-08 28/week @ 2024-04-15 26/week @ 2024-04-22 7/week @ 2024-04-29 24/week @ 2024-05-06 24/week @ 2024-05-13 10/week @ 2024-05-20 29/week @ 2024-05-27 9/week @ 2024-06-03 42/week @ 2024-06-10 1/week @ 2024-06-17 10/week @ 2024-06-24

63 downloads per month
Used in 4 crates (3 directly)

MPL-2.0 license

9KB
75 lines

ptr::Unique for stable Rust

This project can be used to create your own collections that might want to use an optimized pointer but doesn't want to manually implement Send and Sync. This project uses the sources of the internal implementation of Unique and a NonNull pointer to guarrentee null pointer optimization.


lib.rs:

This crate provides an Unique implementation without using any unstable code that would require nightly.

Look at the Unique definition for more info.

No runtime deps