Skip to main content

ImplementedBy

Trait ImplementedBy 

Source
pub unsafe trait ImplementedBy<T>: Interface {
    const VTBL: &'static Self::Vtbl;
}
Expand description

Links an interface Self to a Rust type T that implements its callbacks: supplies the vtable native code will call through.

Generated code provides unsafe impl<T: IFooImpl> ImplementedBy<T> for IFoo.

§Safety

VTBL must be a vtable for Self whose thunks expect this to point at a ComObject<T>.

Required Associated Constants§

Source

const VTBL: &'static Self::Vtbl

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§