Rename KeyedQueue to PairedQueue
This commit is contained in:
parent
17b544f8bc
commit
6e91aef421
5 changed files with 21 additions and 21 deletions
|
@ -2,11 +2,11 @@ pub mod backing;
|
|||
pub mod queue;
|
||||
|
||||
use pyo3::prelude::*;
|
||||
use queue::keyed::KeyedQueue;
|
||||
use queue::paired::PairedQueue;
|
||||
|
||||
/// Bindings for the Rust queue implementations
|
||||
#[pymodule]
|
||||
fn pyority_queue(m: &Bound<'_, PyModule>) -> PyResult<()> {
|
||||
m.add_class::<KeyedQueue>()?;
|
||||
m.add_class::<PairedQueue>()?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
pub mod keyed;
|
||||
pub mod paired;
|
||||
|
|
|
@ -6,12 +6,12 @@ use crate::backing::{
|
|||
use pyo3::prelude::*;
|
||||
|
||||
#[pyclass]
|
||||
pub struct KeyedQueue {
|
||||
pub struct PairedQueue {
|
||||
backing: Box<dyn PureBacking<Item<Py<PyAny>, f64>>>,
|
||||
}
|
||||
|
||||
#[pymethods]
|
||||
impl KeyedQueue {
|
||||
impl PairedQueue {
|
||||
#[new]
|
||||
fn new() -> Self {
|
||||
Self {
|
Loading…
Add table
Add a link
Reference in a new issue