Fully implement PureQueue
This commit is contained in:
parent
608ff1a3d5
commit
7184ddb9b0
3 changed files with 56 additions and 11 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue