diff --git a/newsfragments/3802.added.md b/newsfragments/3802.added.md new file mode 100644 index 00000000000..86b98e9df97 --- /dev/null +++ b/newsfragments/3802.added.md @@ -0,0 +1 @@ +Add `PyBackedStr` and `PyBackedBytes`, as alternatives to `&str` and `&bytes` where a Python object owns the data. diff --git a/src/pybacked.rs b/src/pybacked.rs index d1e60db6149..b5301399fb5 100644 --- a/src/pybacked.rs +++ b/src/pybacked.rs @@ -1,3 +1,5 @@ +//! Contains types for working with Python objects that own the underlying data. + use std::{ops::Deref, ptr::NonNull}; use crate::{