pub enum ResDecreaseKeyOrPush {
Pushed,
Decreased,
}
Expand description
Result of queue.decrease_key_or_push(node, key)
operation : PriorityQueueDecKey::decrease_key_or_push
.
Variants§
Pushed
The node
did not exist in the queue; and hence, pushed to the queue with the given key
.
Decreased
The node
existed in the queue, its key was higher; and hence, decreased to the given key
.
Trait Implementations§
source§impl Clone for ResDecreaseKeyOrPush
impl Clone for ResDecreaseKeyOrPush
source§fn clone(&self) -> ResDecreaseKeyOrPush
fn clone(&self) -> ResDecreaseKeyOrPush
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResDecreaseKeyOrPush
impl Debug for ResDecreaseKeyOrPush
source§impl PartialEq for ResDecreaseKeyOrPush
impl PartialEq for ResDecreaseKeyOrPush
impl Copy for ResDecreaseKeyOrPush
impl Eq for ResDecreaseKeyOrPush
impl StructuralPartialEq for ResDecreaseKeyOrPush
Auto Trait Implementations§
impl Freeze for ResDecreaseKeyOrPush
impl RefUnwindSafe for ResDecreaseKeyOrPush
impl Send for ResDecreaseKeyOrPush
impl Sync for ResDecreaseKeyOrPush
impl Unpin for ResDecreaseKeyOrPush
impl UnwindSafe for ResDecreaseKeyOrPush
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)