##// END OF EJS Templates
rust-cpython: rename py_shared_iterator_impl to py_shared_iterator...
Yuya Nishihara -
r43159:ea91a126 default
parent child Browse files
Show More
@@ -98,7 +98,7 b' impl CopyMap {'
98 }
98 }
99 }
99 }
100
100
101 py_shared_iterator_impl!(
101 py_shared_iterator!(
102 CopyMapKeysIterator,
102 CopyMapKeysIterator,
103 DirstateMapLeakedRef,
103 DirstateMapLeakedRef,
104 CopyMapIter<'static>,
104 CopyMapIter<'static>,
@@ -106,7 +106,7 b' py_shared_iterator_impl!('
106 Option<PyBytes>
106 Option<PyBytes>
107 );
107 );
108
108
109 py_shared_iterator_impl!(
109 py_shared_iterator!(
110 CopyMapItemsIterator,
110 CopyMapItemsIterator,
111 DirstateMapLeakedRef,
111 DirstateMapLeakedRef,
112 CopyMapIter<'static>,
112 CopyMapIter<'static>,
@@ -121,7 +121,7 b' impl Dirs {'
121 }
121 }
122 }
122 }
123
123
124 py_shared_iterator_impl!(
124 py_shared_iterator!(
125 DirsMultisetKeysIterator,
125 DirsMultisetKeysIterator,
126 DirsMultisetLeakedRef,
126 DirsMultisetLeakedRef,
127 DirsMultisetIter<'static>,
127 DirsMultisetIter<'static>,
@@ -484,7 +484,7 b' impl DirstateMap {'
484
484
485 py_shared_ref!(DirstateMap, RustDirstateMap, inner, DirstateMapLeakedRef,);
485 py_shared_ref!(DirstateMap, RustDirstateMap, inner, DirstateMapLeakedRef,);
486
486
487 py_shared_iterator_impl!(
487 py_shared_iterator!(
488 DirstateMapKeysIterator,
488 DirstateMapKeysIterator,
489 DirstateMapLeakedRef,
489 DirstateMapLeakedRef,
490 StateMapIter<'static>,
490 StateMapIter<'static>,
@@ -492,7 +492,7 b' py_shared_iterator_impl!('
492 Option<PyBytes>
492 Option<PyBytes>
493 );
493 );
494
494
495 py_shared_iterator_impl!(
495 py_shared_iterator!(
496 DirstateMapItemsIterator,
496 DirstateMapItemsIterator,
497 DirstateMapLeakedRef,
497 DirstateMapLeakedRef,
498 StateMapIter<'static>,
498 StateMapIter<'static>,
@@ -193,7 +193,7 b" impl<'a, T> Drop for PyRefMut<'a, T> {"
193 /// that will be shared.
193 /// that will be shared.
194 /// * `$leaked` is the identifier to give to the struct that will manage
194 /// * `$leaked` is the identifier to give to the struct that will manage
195 /// references to `$name`, to be used for example in other macros like
195 /// references to `$name`, to be used for example in other macros like
196 /// `py_shared_iterator_impl`.
196 /// `py_shared_iterator`.
197 ///
197 ///
198 /// # Example
198 /// # Example
199 ///
199 ///
@@ -332,7 +332,7 b' macro_rules! py_shared_ref {'
332 ///
332 ///
333 /// py_shared_ref!(MyType, MyStruct, inner, MyTypeLeakedRef);
333 /// py_shared_ref!(MyType, MyStruct, inner, MyTypeLeakedRef);
334 ///
334 ///
335 /// py_shared_iterator_impl!(
335 /// py_shared_iterator!(
336 /// MyTypeItemsIterator,
336 /// MyTypeItemsIterator,
337 /// MyTypeLeakedRef,
337 /// MyTypeLeakedRef,
338 /// HashMap<'static, Vec<u8>, Vec<u8>>,
338 /// HashMap<'static, Vec<u8>, Vec<u8>>,
@@ -340,7 +340,7 b' macro_rules! py_shared_ref {'
340 /// Option<(PyBytes, PyBytes)>
340 /// Option<(PyBytes, PyBytes)>
341 /// );
341 /// );
342 /// ```
342 /// ```
343 macro_rules! py_shared_iterator_impl {
343 macro_rules! py_shared_iterator {
344 (
344 (
345 $name: ident,
345 $name: ident,
346 $leaked: ident,
346 $leaked: ident,
General Comments 0
You need to be logged in to leave comments. Login now