Commit Graph

2 Commits

Author SHA1 Message Date
bluss d4dfdea785 nodrop-union: Implement Copy, Clone on NoDrop<T>
Clone is not so important, but Copy is, since it's structural when
implemented, and adding the trait allows more versatile use of
NoDrop<T>.

Only the untagged unions version can implement Copy for NoDrop<T>, since
it truly has no destructor.
2016-09-08 11:46:01 +02:00
bluss 57348a2677 nodrop: Add nightly feature use_union
Use a separate crate (nodrop-union) so that we can conditionally use the
new union keyword without disrupting compatibility.
2016-09-06 11:41:47 +02:00