Trait BikeshedGuaranteedNoDrop

Source
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 T for all T,
  • ManuallyDrop<T> for all T,
  • 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.

Implementors§