pub trait BikeshedGuaranteedNoDrop { }🔬This is a nightly-only experimental API. (
bikeshed_guaranteed_no_drop)Expand description
Marker trait for the types that are allowed in union fields, unsafe fields, and unsafe binder types.
Implemented for:
&T,&mut Tfor allT,ManuallyDrop<T>for allT,- tuples and arrays whose elements implement
BikeshedGuaranteedNoDrop, - or otherwise, all types that are
Copy.
Notably, this doesn’t include all trivially-destructible types for semver reasons.
Bikeshed name for now.