@@ -51,7 +51,7 @@ pub trait RtType {
51
51
type In ;
52
52
type Abi ;
53
53
type Out ;
54
- type ArrayOut ;
54
+ type OutNonNull ;
55
55
56
56
unsafe fn unwrap ( input : & Self :: In ) -> Self :: Abi ;
57
57
unsafe fn uninitialized ( ) -> Self :: Abi ;
@@ -62,7 +62,7 @@ impl<'a> RtType for HString {
62
62
type In = HStringArg ;
63
63
type Abi = HSTRING ;
64
64
type Out = HString ;
65
- type ArrayOut = Self :: Out ;
65
+ type OutNonNull = Self :: Out ;
66
66
67
67
#[ doc( hidden) ] #[ inline]
68
68
unsafe fn unwrap ( v : & HStringArg ) -> Self :: Abi {
@@ -83,7 +83,7 @@ impl<T> RtType for T where T: RtValueType
83
83
type In = T ;
84
84
type Abi = T ;
85
85
type Out = T ;
86
- type ArrayOut = Self :: Out ;
86
+ type OutNonNull = Self :: Out ;
87
87
88
88
#[ doc( hidden) ] #[ inline]
89
89
unsafe fn unwrap ( v : & Self :: In ) -> Self :: Abi {
@@ -235,8 +235,8 @@ macro_rules! RT_INTERFACE {
235
235
impl :: RtType for $interface {
236
236
type In = $interface;
237
237
type Abi = * mut $interface;
238
- type Out = Option <Self :: ArrayOut >;
239
- type ArrayOut = ComPtr <$interface>;
238
+ type Out = Option <Self :: OutNonNull >;
239
+ type OutNonNull = ComPtr <$interface>;
240
240
241
241
#[ doc( hidden) ] #[ inline] unsafe fn unwrap( v: & Self :: In ) -> Self :: Abi { v as * const _ as * mut _ }
242
242
#[ doc( hidden) ] #[ inline] unsafe fn uninitialized( ) -> Self :: Abi { :: std:: ptr:: null_mut( ) }
@@ -284,8 +284,8 @@ macro_rules! RT_INTERFACE {
284
284
impl :: RtType for $interface {
285
285
type In = $interface;
286
286
type Abi = * mut $interface;
287
- type Out = Option <Self :: ArrayOut >;
288
- type ArrayOut = ComPtr <$interface>;
287
+ type Out = Option <Self :: OutNonNull >;
288
+ type OutNonNull = ComPtr <$interface>;
289
289
290
290
#[ doc( hidden) ] #[ inline] unsafe fn unwrap( v: & Self :: In ) -> Self :: Abi { v as * const _ as * mut _ }
291
291
#[ doc( hidden) ] #[ inline] unsafe fn uninitialized( ) -> Self :: Abi { :: std:: ptr:: null_mut( ) }
@@ -330,8 +330,8 @@ macro_rules! RT_INTERFACE {
330
330
impl <$t1> :: RtType for $interface<$t1> where $t1: RtType {
331
331
type In = $interface<$t1>;
332
332
type Abi = * mut $interface<$t1>;
333
- type Out = Option <Self :: ArrayOut >;
334
- type ArrayOut = ComPtr <$interface<$t1>>;
333
+ type Out = Option <Self :: OutNonNull >;
334
+ type OutNonNull = ComPtr <$interface<$t1>>;
335
335
336
336
#[ doc( hidden) ] #[ inline] unsafe fn unwrap( v: & Self :: In ) -> Self :: Abi { v as * const _ as * mut _ }
337
337
#[ doc( hidden) ] #[ inline] unsafe fn uninitialized( ) -> Self :: Abi { :: std:: ptr:: null_mut( ) }
@@ -375,8 +375,8 @@ macro_rules! RT_INTERFACE {
375
375
impl <$t1, $t2> :: RtType for $interface<$t1, $t2> where $t1: RtType , $t2: RtType {
376
376
type In = $interface<$t1, $t2>;
377
377
type Abi = * mut $interface<$t1, $t2>;
378
- type Out = Option <Self :: ArrayOut >;
379
- type ArrayOut = ComPtr <$interface<$t1, $t2>>;
378
+ type Out = Option <Self :: OutNonNull >;
379
+ type OutNonNull = ComPtr <$interface<$t1, $t2>>;
380
380
381
381
#[ doc( hidden) ] #[ inline] unsafe fn unwrap( v: & Self :: In ) -> Self :: Abi { v as * const _ as * mut _ }
382
382
#[ doc( hidden) ] #[ inline] unsafe fn uninitialized( ) -> Self :: Abi { :: std:: ptr:: null_mut( ) }
@@ -556,8 +556,8 @@ macro_rules! RT_CLASS {
556
556
impl :: RtType for $cls {
557
557
type In = $cls;
558
558
type Abi = * mut $cls;
559
- type Out = Option <Self :: ArrayOut >;
560
- type ArrayOut = ComPtr <$cls>;
559
+ type Out = Option <Self :: OutNonNull >;
560
+ type OutNonNull = ComPtr <$cls>;
561
561
562
562
#[ doc( hidden) ] #[ inline] unsafe fn unwrap( v: & Self :: In ) -> Self :: Abi { v as * const _ as * mut _ }
563
563
#[ doc( hidden) ] #[ inline] unsafe fn uninitialized( ) -> Self :: Abi { :: std:: ptr:: null_mut( ) }
0 commit comments