pub unsafe trait ReprC {
const CHECK: ();
}
Expand description
Ensures that the type implementing it is #[repr(C)]
.
This cannot be guaranteed in general, and therefore we
rely on macros to achieve that. This is a marker trait.
§Safety
This is an inherently unsafe trait. Any type implementing it
has to have #[repr(C)]
set recursively.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.