Trait windows_core::ComObjectInterface
pub trait ComObjectInterface<I: Interface> {
// Required method
fn as_interface_ref(&self) -> InterfaceRef<'_, I>;
}
Expand description
Describes the COM interfaces implemented by a specific COM object.
The #[implement]
macro generates implementations of this trait. Implementations are attached
to the “outer” types generated by #[implement]
, e.g. the MyApp_Impl
type. Each
implementation knows how to locate the interface-specific field within MyApp_Impl
.
This trait is an implementation detail of the Windows crates. User code should not deal directly with this trait.
Required Methods§
fn as_interface_ref(&self) -> InterfaceRef<'_, I>
fn as_interface_ref(&self) -> InterfaceRef<'_, I>
Gets a borrowed interface that is implemented by T
.