Fully implement PureQueue

This commit is contained in:
Michael Bradley 2025-01-10 21:33:45 +13:00
parent 608ff1a3d5
commit 7184ddb9b0
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
3 changed files with 56 additions and 11 deletions

View file

@ -8,12 +8,12 @@ pub struct PyItem(Py<PyAny>);
impl PyItem {
/// Creates a new instance
fn new(item: Py<PyAny>) -> Self {
pub fn new(item: Py<PyAny>) -> Self {
PyItem(item)
}
/// Retrieves the internal data
fn item(self) -> Py<PyAny> {
pub fn data(self) -> Py<PyAny> {
self.0
}
}