Mercurial > hg
comparison rust/hg-cpython/src/dirstate/dirstate_map.rs @ 42889:ea91a126c803
rust-cpython: rename py_shared_iterator_impl to py_shared_iterator
It's a public interface now.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 08 Sep 2019 12:26:12 +0900 |
parents | 67853749961b |
children | 74d67c645278 |
comparison
equal
deleted
inserted
replaced
42888:67853749961b | 42889:ea91a126c803 |
---|---|
482 } | 482 } |
483 } | 483 } |
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>, |
491 DirstateMap::translate_key, | 491 DirstateMap::translate_key, |
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>, |
499 DirstateMap::translate_key_value, | 499 DirstateMap::translate_key_value, |
500 Option<(PyBytes, PyObject)> | 500 Option<(PyBytes, PyObject)> |