]> git.lizzy.rs Git - rust.git/commit
Add an implementation of Zeroable for Unique<T>
authorJonathan Reem <jonathan.reem@gmail.com>
Tue, 27 Jan 2015 23:17:04 +0000 (18:17 -0500)
committerJonathan Reem <jonathan.reem@gmail.com>
Tue, 27 Jan 2015 23:17:04 +0000 (18:17 -0500)
commit83f8088108053efd2079d8ba8d677577685e8f6f
tree1e8a9693f271105ba4523483d2f84d16e6ac9e29
parent777435990e0e91df6b72ce80c9b6fa485eeb5daa
Add an implementation of Zeroable for Unique<T>

This allows the use of `NonZero<Unique<T>>` for owned,
non-null raw pointers.

cc https://github.com/Gankro/collect-rs/pull/103
src/libcore/nonzero.rs