@@ -313,8 +313,8 @@ macro_rules! RT_INTERFACE {
313
313
}
314
314
impl ComInterface for $interface {
315
315
type TAbi = crate :: comptr:: ComAbi <$vtbl>;
316
- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
317
- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
316
+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
317
+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
318
318
}
319
319
impl crate :: RtType for $interface {
320
320
type In = Self ;
@@ -362,8 +362,8 @@ macro_rules! RT_INTERFACE {
362
362
}
363
363
impl ComInterface for $interface {
364
364
type TAbi = crate :: comptr:: ComAbi <$vtbl>;
365
- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
366
- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
365
+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
366
+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
367
367
}
368
368
impl crate :: RtType for $interface {
369
369
type In = Self ;
@@ -408,8 +408,8 @@ macro_rules! RT_INTERFACE {
408
408
pub struct $interface<$t1: RtType >( ComPtr <crate :: comptr:: ComAbi <$vtbl<$t1>>>) ;
409
409
impl <$t1> ComInterface for $interface<$t1> where $t1: RtType {
410
410
type TAbi = crate :: comptr:: ComAbi <$vtbl<$t1>>;
411
- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
412
- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
411
+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
412
+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
413
413
}
414
414
impl <$t1> crate :: RtType for $interface<$t1> where $t1: RtType {
415
415
type In = Self ;
@@ -453,8 +453,8 @@ macro_rules! RT_INTERFACE {
453
453
pub struct $interface<$t1: RtType , $t2: RtType >( ComPtr <crate :: comptr:: ComAbi <$vtbl<$t1, $t2>>>) ;
454
454
impl <$t1, $t2> ComInterface for $interface<$t1, $t2> where $t1: RtType , $t2: RtType {
455
455
type TAbi = crate :: comptr:: ComAbi <$vtbl<$t1, $t2>>;
456
- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
457
- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
456
+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $interface( ComPtr :: wrap( ptr) ) }
457
+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
458
458
}
459
459
impl <$t1, $t2> crate :: RtType for $interface<$t1, $t2> where $t1: RtType , $t2: RtType {
460
460
type In = Self ;
@@ -634,8 +634,8 @@ macro_rules! RT_CLASS {
634
634
unsafe impl crate :: RtClassInterface for $cls { }
635
635
impl ComInterface for $cls {
636
636
type TAbi = <$interface as ComInterface >:: TAbi ;
637
- unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $cls( ComPtr :: wrap( ptr) ) }
638
- fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
637
+ # [ inline ] unsafe fn wrap_com( ptr: * mut Self :: TAbi ) -> Self { $cls( ComPtr :: wrap( ptr) ) }
638
+ # [ inline ] fn get_abi( & self ) -> & Self :: TAbi { self . 0 . as_abi( ) }
639
639
}
640
640
impl ComIid for $cls {
641
641
#[ inline] fn iid( ) -> & ' static crate :: Guid { <$interface as ComIid >:: iid( ) }
0 commit comments