2 releases
0.9.1 | Apr 8, 2021 |
---|---|
0.8.0 |
|
0.7.0 |
|
0.6.0 |
|
0.2.2 |
|
#2318 in Rust patterns
63 downloads per month
Used in 4 crates
(3 directly)
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.