Atomic Destroy
This crate provides a type which can hold a value and can be atomically destroyed; like an atomic
Option
.
It does not require the standard library.
Examples
use AtomicDestroy;
let value = new;
assert_eq!;
value.destroy;
// The Box's destructor is run here.
assert!;