pub struct PriorityQueueExt { /* private fields */ }Expand description
Extended priority queue supporting decrease-key.
Implementations§
Source§impl PriorityQueueExt
impl PriorityQueueExt
Sourcepub fn decrease_key(&mut self, key: &str, new_priority: i64)
pub fn decrease_key(&mut self, key: &str, new_priority: i64)
Decrease the priority of key (lower value = higher priority).
Sourcepub fn priority_of(&self, key: &str) -> Option<i64>
pub fn priority_of(&self, key: &str) -> Option<i64>
Get the current priority of key.
Auto Trait Implementations§
impl Freeze for PriorityQueueExt
impl RefUnwindSafe for PriorityQueueExt
impl Send for PriorityQueueExt
impl Sync for PriorityQueueExt
impl Unpin for PriorityQueueExt
impl UnsafeUnpin for PriorityQueueExt
impl UnwindSafe for PriorityQueueExt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more