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

#2195 in Rust patterns

Download history 15/week @ 2023-12-11 2/week @ 2024-01-08 3/week @ 2024-02-19 16/week @ 2024-02-26 8/week @ 2024-03-04 27/week @ 2024-03-11 10/week @ 2024-03-18 12/week @ 2024-03-25

57 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