pyo3/newsfragments/3802.added.md
David Hewitt dc8b948201
add PyBackedStr and PyBackedBytes (#3802)
* add `PyBackedStr` and `PyBackedBytes`

* review: adamreichold feedback

* use `NonNull<[u8]>`

* clippy and newsfragment

* drop binding unused after refactoring

---------

Co-authored-by: Adam Reichold <adam.reichold@t-online.de>
2024-02-15 07:58:20 +00:00

115 B

Add PyBackedStr and PyBackedBytes, as alternatives to &str and &bytes where a Python object owns the data.