pub unsafe trait ErasableGeneric {
type Repr: 'static;
}Expand description
Private marker trait for erasable generics - types with this trait have the same repr for all generic param values, and can therefore be transmuted on the singular Repr type representation on ABI boundaries.
§Safety
This type must only be implemented on types known to be repr equivalent to their Repr type.