@@ -280,7 +280,7 @@ mod tests {
280
280
unsafe extern "C++" {
281
281
#[ doc( hidden) ]
282
282
#[ namespace = "rust::cxxqtgen1" ]
283
- type MyObjectCxxQtSignalHandlertrivialPropertyChanged = cxx_qt:: signalhandler:: CxxQtSignalHandler <super :: MyObjectCxxQtSignalClosuretrivialPropertyChanged >;
283
+ type MyObjectCxxQtSignalHandlertrivialPropertyChanged < ' a> = cxx_qt:: signalhandler:: CxxQtSignalHandler <' a , super :: MyObjectCxxQtSignalClosuretrivialPropertyChanged >;
284
284
285
285
#[ doc( hidden) ]
286
286
#[ namespace = "rust::cxxqtgen1" ]
@@ -310,9 +310,9 @@ mod tests {
310
310
#[ doc = "Connect the given function pointer to the signal " ]
311
311
#[ doc = "trivialPropertyChanged" ]
312
312
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
313
- pub fn connect_trivial_property_changed<F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' static + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnectionGuard
313
+ pub fn connect_trivial_property_changed<' a , F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QScopedMetaObjectConnectionGuard < ' a>
314
314
{
315
- cxx_qt:: QMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_trivial_property_changed (
315
+ cxx_qt:: QScopedMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_trivial_property_changed (
316
316
self ,
317
317
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosuretrivialPropertyChanged >:: new( Box :: new( closure) ) ,
318
318
conn_type,
@@ -330,9 +330,9 @@ mod tests {
330
330
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
331
331
#[ doc = "\n " ]
332
332
#[ doc = "Note that this method uses a AutoConnection connection type." ]
333
- pub fn on_trivial_property_changed<F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' static + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F ) -> cxx_qt:: QMetaObjectConnectionGuard
333
+ pub fn on_trivial_property_changed<' a , F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F ) -> cxx_qt:: QScopedMetaObjectConnectionGuard < ' a>
334
334
{
335
- cxx_qt:: QMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_trivial_property_changed (
335
+ cxx_qt:: QScopedMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_trivial_property_changed (
336
336
self ,
337
337
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosuretrivialPropertyChanged >:: new( Box :: new( closure) ) ,
338
338
cxx_qt:: ConnectionType :: AutoConnection ,
@@ -353,7 +353,7 @@ mod tests {
353
353
parse_quote ! {
354
354
impl cxx_qt:: signalhandler:: CxxQtSignalHandlerClosure for MyObjectCxxQtSignalClosuretrivialPropertyChanged {
355
355
type Id = cxx:: type_id!( "::rust::cxxqtgen1::MyObjectCxxQtSignalHandlertrivialPropertyChanged" ) ;
356
- type FnType = dyn FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + Send ;
356
+ type FnType < ' a> = dyn FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send ;
357
357
}
358
358
} ,
359
359
) ;
@@ -405,7 +405,7 @@ mod tests {
405
405
unsafe extern "C++" {
406
406
#[ doc( hidden) ]
407
407
#[ namespace = "rust::cxxqtgen1" ]
408
- type MyObjectCxxQtSignalHandleropaquePropertyChanged = cxx_qt:: signalhandler:: CxxQtSignalHandler <super :: MyObjectCxxQtSignalClosureopaquePropertyChanged >;
408
+ type MyObjectCxxQtSignalHandleropaquePropertyChanged < ' a> = cxx_qt:: signalhandler:: CxxQtSignalHandler <' a , super :: MyObjectCxxQtSignalClosureopaquePropertyChanged >;
409
409
410
410
#[ doc( hidden) ]
411
411
#[ namespace = "rust::cxxqtgen1" ]
@@ -435,9 +435,9 @@ mod tests {
435
435
#[ doc = "Connect the given function pointer to the signal " ]
436
436
#[ doc = "opaquePropertyChanged" ]
437
437
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
438
- pub fn connect_opaque_property_changed<F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' static + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnectionGuard
438
+ pub fn connect_opaque_property_changed<' a , F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QScopedMetaObjectConnectionGuard < ' a>
439
439
{
440
- cxx_qt:: QMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_opaque_property_changed (
440
+ cxx_qt:: QScopedMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_opaque_property_changed (
441
441
self ,
442
442
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosureopaquePropertyChanged >:: new( Box :: new( closure) ) ,
443
443
conn_type,
@@ -455,9 +455,9 @@ mod tests {
455
455
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
456
456
#[ doc = "\n " ]
457
457
#[ doc = "Note that this method uses a AutoConnection connection type." ]
458
- pub fn on_opaque_property_changed<F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' static + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F ) -> cxx_qt:: QMetaObjectConnectionGuard
458
+ pub fn on_opaque_property_changed<' a , F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F ) -> cxx_qt:: QScopedMetaObjectConnectionGuard < ' a>
459
459
{
460
- cxx_qt:: QMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_opaque_property_changed (
460
+ cxx_qt:: QScopedMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_opaque_property_changed (
461
461
self ,
462
462
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosureopaquePropertyChanged >:: new( Box :: new( closure) ) ,
463
463
cxx_qt:: ConnectionType :: AutoConnection ,
@@ -478,7 +478,7 @@ mod tests {
478
478
parse_quote ! {
479
479
impl cxx_qt:: signalhandler:: CxxQtSignalHandlerClosure for MyObjectCxxQtSignalClosureopaquePropertyChanged {
480
480
type Id = cxx:: type_id!( "::rust::cxxqtgen1::MyObjectCxxQtSignalHandleropaquePropertyChanged" ) ;
481
- type FnType = dyn FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + Send ;
481
+ type FnType < ' a> = dyn FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send ;
482
482
}
483
483
} ,
484
484
) ;
@@ -530,7 +530,7 @@ mod tests {
530
530
unsafe extern "C++" {
531
531
#[ doc( hidden) ]
532
532
#[ namespace = "rust::cxxqtgen1" ]
533
- type MyObjectCxxQtSignalHandlerunsafePropertyChanged = cxx_qt:: signalhandler:: CxxQtSignalHandler <super :: MyObjectCxxQtSignalClosureunsafePropertyChanged >;
533
+ type MyObjectCxxQtSignalHandlerunsafePropertyChanged < ' a> = cxx_qt:: signalhandler:: CxxQtSignalHandler <' a , super :: MyObjectCxxQtSignalClosureunsafePropertyChanged >;
534
534
535
535
#[ doc( hidden) ]
536
536
#[ namespace = "rust::cxxqtgen1" ]
@@ -560,9 +560,9 @@ mod tests {
560
560
#[ doc = "Connect the given function pointer to the signal " ]
561
561
#[ doc = "unsafePropertyChanged" ]
562
562
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
563
- pub fn connect_unsafe_property_changed<F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' static + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnectionGuard
563
+ pub fn connect_unsafe_property_changed<' a , F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QScopedMetaObjectConnectionGuard < ' a>
564
564
{
565
- cxx_qt:: QMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_unsafe_property_changed (
565
+ cxx_qt:: QScopedMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_unsafe_property_changed (
566
566
self ,
567
567
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosureunsafePropertyChanged >:: new( Box :: new( closure) ) ,
568
568
conn_type,
@@ -580,9 +580,9 @@ mod tests {
580
580
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
581
581
#[ doc = "\n " ]
582
582
#[ doc = "Note that this method uses a AutoConnection connection type." ]
583
- pub fn on_unsafe_property_changed<F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' static + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F ) -> cxx_qt:: QMetaObjectConnectionGuard
583
+ pub fn on_unsafe_property_changed<' a , F : FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send >( self : core:: pin:: Pin <& mut qobject:: MyObject >, closure: F ) -> cxx_qt:: QScopedMetaObjectConnectionGuard < ' a>
584
584
{
585
- cxx_qt:: QMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_unsafe_property_changed (
585
+ cxx_qt:: QScopedMetaObjectConnectionGuard :: from( qobject:: MyObject_connect_unsafe_property_changed (
586
586
self ,
587
587
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosureunsafePropertyChanged >:: new( Box :: new( closure) ) ,
588
588
cxx_qt:: ConnectionType :: AutoConnection ,
@@ -603,7 +603,7 @@ mod tests {
603
603
parse_quote ! {
604
604
impl cxx_qt:: signalhandler:: CxxQtSignalHandlerClosure for MyObjectCxxQtSignalClosureunsafePropertyChanged {
605
605
type Id = cxx:: type_id!( "::rust::cxxqtgen1::MyObjectCxxQtSignalHandlerunsafePropertyChanged" ) ;
606
- type FnType = dyn FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + Send ;
606
+ type FnType < ' a> = dyn FnMut ( core:: pin:: Pin <& mut qobject:: MyObject >, ) + ' a + Send ;
607
607
}
608
608
} ,
609
609
) ;
0 commit comments