Implement Python bindings for IndexedQueue

This commit is contained in:
Michael Bradley 2025-01-12 21:01:11 +13:00
parent fec9ccffc6
commit 2cb2e97d7b
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
4 changed files with 104 additions and 15 deletions

View file

@ -50,4 +50,8 @@ impl<D: Hash + Clone + Send + Sync, P: PartialOrd + Clone + Send + Sync> Indexed
fn remove(&mut self, data: D) -> bool {
todo!()
}
fn contains(&self, data: &D) -> bool {
todo!()
}
}

View file

@ -13,4 +13,6 @@ pub trait IndexedBacking<D: Clone + Send + Sync, P: PartialOrd + Clone + Send +
fn update(&mut self, data: D, priority: P) -> bool;
/// Remove an item from the queue
fn remove(&mut self, data: D) -> bool;
/// Check if an item is already in the queue
fn contains(&self, data: &D) -> bool;
}