@@ -172,16 +172,16 @@ mod tests {
172
172
quote ! {
173
173
extern "Rust" {
174
174
#[ cxx_name = "voidInvokableWrapper" ]
175
- fn void_invokable_wrapper( self : & MyObject , cpp: & MyObjectQt ) ;
175
+ fn void_invokable_wrapper( self : & MyObjectRust , cpp: & MyObject ) ;
176
176
}
177
177
} ,
178
178
) ;
179
179
assert_tokens_eq (
180
180
& generated. cxx_qt_mod_contents [ 0 ] ,
181
181
quote ! {
182
- impl MyObject {
182
+ impl MyObjectRust {
183
183
#[ doc( hidden) ]
184
- pub fn void_invokable_wrapper( self : & MyObject , cpp: & MyObjectQt ) {
184
+ pub fn void_invokable_wrapper( self : & MyObjectRust , cpp: & MyObject ) {
185
185
cpp. void_invokable( ) ;
186
186
}
187
187
}
@@ -194,16 +194,16 @@ mod tests {
194
194
quote ! {
195
195
extern "Rust" {
196
196
#[ cxx_name = "trivialInvokableWrapper" ]
197
- fn trivial_invokable_wrapper( self : & MyObject , cpp: & MyObjectQt , param: i32 ) -> i32 ;
197
+ fn trivial_invokable_wrapper( self : & MyObjectRust , cpp: & MyObject , param: i32 ) -> i32 ;
198
198
}
199
199
} ,
200
200
) ;
201
201
assert_tokens_eq (
202
202
& generated. cxx_qt_mod_contents [ 1 ] ,
203
203
quote ! {
204
- impl MyObject {
204
+ impl MyObjectRust {
205
205
#[ doc( hidden) ]
206
- pub fn trivial_invokable_wrapper( self : & MyObject , cpp: & MyObjectQt , param: i32 ) -> i32 {
206
+ pub fn trivial_invokable_wrapper( self : & MyObjectRust , cpp: & MyObject , param: i32 ) -> i32 {
207
207
return cpp. trivial_invokable( param) ;
208
208
}
209
209
}
@@ -216,16 +216,16 @@ mod tests {
216
216
quote ! {
217
217
extern "Rust" {
218
218
#[ cxx_name = "opaqueInvokableWrapper" ]
219
- fn opaque_invokable_wrapper( self : & mut MyObject , cpp: Pin <& mut MyObjectQt >, param: & QColor ) -> UniquePtr <QColor >;
219
+ fn opaque_invokable_wrapper( self : & mut MyObjectRust , cpp: Pin <& mut MyObject >, param: & QColor ) -> UniquePtr <QColor >;
220
220
}
221
221
} ,
222
222
) ;
223
223
assert_tokens_eq (
224
224
& generated. cxx_qt_mod_contents [ 2 ] ,
225
225
quote ! {
226
- impl MyObject {
226
+ impl MyObjectRust {
227
227
#[ doc( hidden) ]
228
- pub fn opaque_invokable_wrapper( self : & mut MyObject , cpp: Pin <& mut MyObjectQt >, param: & QColor ) -> UniquePtr <QColor > {
228
+ pub fn opaque_invokable_wrapper( self : & mut MyObjectRust , cpp: Pin <& mut MyObject >, param: & QColor ) -> UniquePtr <QColor > {
229
229
return cpp. opaque_invokable( param) ;
230
230
}
231
231
}
@@ -238,16 +238,16 @@ mod tests {
238
238
quote ! {
239
239
extern "Rust" {
240
240
#[ cxx_name = "unsafeInvokableWrapper" ]
241
- unsafe fn unsafe_invokable_wrapper( self : & MyObject , cpp: & MyObjectQt , param: * mut T ) -> * mut T ;
241
+ unsafe fn unsafe_invokable_wrapper( self : & MyObjectRust , cpp: & MyObject , param: * mut T ) -> * mut T ;
242
242
}
243
243
} ,
244
244
) ;
245
245
assert_tokens_eq (
246
246
& generated. cxx_qt_mod_contents [ 3 ] ,
247
247
quote ! {
248
- impl MyObject {
248
+ impl MyObjectRust {
249
249
#[ doc( hidden) ]
250
- pub unsafe fn unsafe_invokable_wrapper( self : & MyObject , cpp: & MyObjectQt , param: * mut T ) -> * mut T {
250
+ pub unsafe fn unsafe_invokable_wrapper( self : & MyObjectRust , cpp: & MyObject , param: * mut T ) -> * mut T {
251
251
return cpp. unsafe_invokable( param) ;
252
252
}
253
253
}
0 commit comments