Trait com_scrape_types::Construct
source · pub unsafe trait Construct<C: Class, W: Wrapper<C>, const OFFSET: isize>: Interface {
const OBJ: Self;
}
Expand description
Generates the virtual table and base class object for a given class and interface.
The W
parameter is the wrapper type which provides helper functionality for reference
counting and class layout. The OFFSET
parameter is the offset, within the header, at which
the constructed base class object will be located.
This trait is used in the implementations of MakeHeader
for tuples of interfaces. Interface
types generated by com-scrape
will implement this trait.
§Safety
When I::OBJ
is reinterpreted as *const I::Vtbl
(see the
safety documentation for Interface
), it must be a valid pointer to an
instance of I::Vtbl
.
Required Associated Constants§
Object Safety§
This trait is not object safe.