@@ -172,16 +172,16 @@ mod tests {
172172 quote ! {
173173 extern "Rust" {
174174 #[ cxx_name = "voidInvokableWrapper" ]
175- fn void_invokable_wrapper( self : & MyObject , cpp: & MyObjectQt ) ;
175+ fn void_invokable_wrapper( self : & MyObjectRust , cpp: & MyObject ) ;
176176 }
177177 } ,
178178 ) ;
179179 assert_tokens_eq (
180180 & generated. cxx_qt_mod_contents [ 0 ] ,
181181 quote ! {
182- impl MyObject {
182+ impl MyObjectRust {
183183 #[ doc( hidden) ]
184- pub fn void_invokable_wrapper( self : & MyObject , cpp: & MyObjectQt ) {
184+ pub fn void_invokable_wrapper( self : & MyObjectRust , cpp: & MyObject ) {
185185 cpp. void_invokable( ) ;
186186 }
187187 }
@@ -194,16 +194,16 @@ mod tests {
194194 quote ! {
195195 extern "Rust" {
196196 #[ 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 ;
198198 }
199199 } ,
200200 ) ;
201201 assert_tokens_eq (
202202 & generated. cxx_qt_mod_contents [ 1 ] ,
203203 quote ! {
204- impl MyObject {
204+ impl MyObjectRust {
205205 #[ 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 {
207207 return cpp. trivial_invokable( param) ;
208208 }
209209 }
@@ -216,16 +216,16 @@ mod tests {
216216 quote ! {
217217 extern "Rust" {
218218 #[ 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 >;
220220 }
221221 } ,
222222 ) ;
223223 assert_tokens_eq (
224224 & generated. cxx_qt_mod_contents [ 2 ] ,
225225 quote ! {
226- impl MyObject {
226+ impl MyObjectRust {
227227 #[ 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 > {
229229 return cpp. opaque_invokable( param) ;
230230 }
231231 }
@@ -238,16 +238,16 @@ mod tests {
238238 quote ! {
239239 extern "Rust" {
240240 #[ 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 ;
242242 }
243243 } ,
244244 ) ;
245245 assert_tokens_eq (
246246 & generated. cxx_qt_mod_contents [ 3 ] ,
247247 quote ! {
248- impl MyObject {
248+ impl MyObjectRust {
249249 #[ 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 {
251251 return cpp. unsafe_invokable( param) ;
252252 }
253253 }
0 commit comments