Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-cpython/src/ref_sharing.rs @ 42895: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 |
line wrap: on
line diff
--- a/rust/hg-cpython/src/ref_sharing.rs Sun Sep 08 12:23:18 2019 +0900 +++ b/rust/hg-cpython/src/ref_sharing.rs Sun Sep 08 12:26:12 2019 +0900 @@ -193,7 +193,7 @@ /// that will be shared. /// * `$leaked` is the identifier to give to the struct that will manage /// references to `$name`, to be used for example in other macros like -/// `py_shared_iterator_impl`. +/// `py_shared_iterator`. /// /// # Example /// @@ -332,7 +332,7 @@ /// /// py_shared_ref!(MyType, MyStruct, inner, MyTypeLeakedRef); /// -/// py_shared_iterator_impl!( +/// py_shared_iterator!( /// MyTypeItemsIterator, /// MyTypeLeakedRef, /// HashMap<'static, Vec<u8>, Vec<u8>>, @@ -340,7 +340,7 @@ /// Option<(PyBytes, PyBytes)> /// ); /// ``` -macro_rules! py_shared_iterator_impl { +macro_rules! py_shared_iterator { ( $name: ident, $leaked: ident,