pub unsafe trait MakeHeader<C, W>: InterfaceList{
const HEADER: Self::Header;
}Expand description
Generates the object header for a given class and list of interfaces.
This trait is implemented for tuples of interface types, and it is used by ComWrapper to
construct the object header for a given Rust value.
§Safety
If L::query(I::IID) returns Some(offset) for an Interface I (see InterfaceList),
the I value located at offset offset within L::Header must (when reinterpreted as
*const I::Vtbl) be a valid pointer to an instance of I::Vtbl.
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.