Trait com_scrape_types::MakeHeader
source · 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§
Object Safety§
This trait is not object safe.