Skip to main content

implement_decl

Macro implement_decl 

macro_rules! implement_decl {
    (
        $(#[$compose:ident])?
        impl < $($gp:ident),+ $(,)? > $name:ident as $vis:vis $impl_name:ident
        : [ $($ty:ty),+ $(,)? ]
        $(where $($wc:tt)+)?
    ) => { ... };
    (
        $(#[$compose:ident])?
        impl $name:ident as $vis:vis $impl_name:ident : [ $($ty:ty),+ $(,)? ] $(,)?
    ) => { ... };
}
Expand description

Declares a Rust type as the COM implementer of one or more interfaces, without using the #[implement] proc-macro.

Implementers are always agile and do not support checked downcasting through Interface::cast_object_ref or Interface::cast_object. Retain a ComObject to access the Rust implementation, or use AsImpl when its safety requirements are satisfied.