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

#21 in #unique

36 downloads per month
Used in stackblur-iter

MPL-2.0 license

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.


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