Mercurial > public > mercurial-scm > hg
comparison rust/pyo3-sharedref/tests/test_sharedref.rs @ 52860:8f6d25439bdc
rust-pyo3-sharedref: macro to define Python iterators
This convenience will help reducing the boilerplate for one of
the most common use cases of the `pyo3_sharedref` crate.
It is an improved adaptation of a similar macro that was in `hg-cpython`
(but not in `rust-cpython`). The improvement is that it takes care of
the constructor, sparing the `share_map` to the caller.
author | Georges Racinet <georges.racinet@cloudcrane.io> |
---|---|
date | Tue, 04 Feb 2025 11:55:14 +0100 |
parents | ac0cb3c334a1 |
children |
comparison
equal
deleted
inserted
replaced
52859:9f083ff3c96c | 52860:8f6d25439bdc |
---|