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