rust/hg-cpython/src/ref_sharing.rs
changeset 42887 706104dcb2c8
parent 42851 64e28b891796
child 42888 67853749961b
equal deleted inserted replaced
42886:7083ac37314f 42887:706104dcb2c8
   415             $success_func,
   415             $success_func,
   416             $success_type
   416             $success_type
   417         );
   417         );
   418     };
   418     };
   419 }
   419 }
   420 
       
   421 /// Works basically the same as `py_shared_mapping_iterator`, but with only a
       
   422 /// key.
       
   423 macro_rules! py_shared_sequence_iterator {
       
   424     (
       
   425         $name:ident,
       
   426         $leaked:ident,
       
   427         $key_type: ty,
       
   428         $success_func: path,
       
   429         $success_type: ty
       
   430     ) => {
       
   431         py_shared_iterator_impl!(
       
   432             $name,
       
   433             $leaked,
       
   434             Box<dyn Iterator<Item = &'static $key_type> + Send>,
       
   435             $success_func,
       
   436             $success_type
       
   437         );
       
   438     };
       
   439 }