The nodrop crate has the following cargo feature flags:
- Optional, enabled by default
- Requires Rust 1.6 to disable
- Use libstd
- Requires nightly channel.
needs_dropto skip overwriting if not necessary
- Requires nightly channel
- Using untagged union, finally we have an implementation of
NoDropwithout hacks, for example the fact that
NoDrop<T>never has a destructor anymore.
A type holding T that will not call its destructor on drop