Attribute Macro derive_com_impl::com_impl
source · [−]#[com_impl]Expand description
#[com_impl]
Generates a VTable for the functions implemented in the impl block this attribute is
applied to. Method names by default are mapped from snake_case to PascalCase to determine
their winapi names. If you would like to override the name, you can specify an attribute
on the method (see below).
For the general syntax see the example in the crate root.
Additional parameters
#[com_impl(no_parent)]
- Specifies that the vtable being implemented here does not have a
parentmember. These are very rare, but include IUnknown.