fn make_unpin_impl(cx: &Context<'_>) -> TokenStream
Expand description
Creates Unpin
implementation for the original type.
The kind of Unpin
impl generated depends on unpin_impl
field:
UnpinImpl::Unsafe
- ImplementsUnpin
viaUnsafeUnpin
impl.UnpinImpl::Negative
- GeneratesUnpin
impl with bounds that will never be true.UnpinImpl::Default
- GeneratesUnpin
impl that requiresUnpin
for all pinned fields.