pub enum ResUpdateKeyOrPush {
Pushed,
Decreased,
Increased,
}
Expand description
Result of queue.update_key_or_push(node, key)
operation : PriorityQueueDecKey::update_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
.
Increased
The node
existed in the queue, its key was lower; and hence, increased to the given key
.
Trait Implementations§
source§impl Clone for ResUpdateKeyOrPush
impl Clone for ResUpdateKeyOrPush
source§fn clone(&self) -> ResUpdateKeyOrPush
fn clone(&self) -> ResUpdateKeyOrPush
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 ResUpdateKeyOrPush
impl Debug for ResUpdateKeyOrPush
source§impl From<ResUpdateKey> for ResUpdateKeyOrPush
impl From<ResUpdateKey> for ResUpdateKeyOrPush
source§fn from(value: ResUpdateKey) -> Self
fn from(value: ResUpdateKey) -> Self
Converts to this type from the input type.
source§impl PartialEq for ResUpdateKeyOrPush
impl PartialEq for ResUpdateKeyOrPush
impl Copy for ResUpdateKeyOrPush
impl Eq for ResUpdateKeyOrPush
impl StructuralPartialEq for ResUpdateKeyOrPush
Auto Trait Implementations§
impl Freeze for ResUpdateKeyOrPush
impl RefUnwindSafe for ResUpdateKeyOrPush
impl Send for ResUpdateKeyOrPush
impl Sync for ResUpdateKeyOrPush
impl Unpin for ResUpdateKeyOrPush
impl UnwindSafe for ResUpdateKeyOrPush
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
)