pub enum ResTryDecreaseKey {
Decreased,
Unchanged,
}
Expand description
Result of queue.try_decrease_key(node, new_key)
operation : PriorityQueueDecKey::try_decrease_key
.
Variants§
Decreased
Existing key of the node
was higher; and hence, decreased to the new_key
.
Unchanged
Existing key of the node
was lower; and hence, the queue is not changed.
Trait Implementations§
source§impl Clone for ResTryDecreaseKey
impl Clone for ResTryDecreaseKey
source§fn clone(&self) -> ResTryDecreaseKey
fn clone(&self) -> ResTryDecreaseKey
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 ResTryDecreaseKey
impl Debug for ResTryDecreaseKey
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 ResTryDecreaseKey
impl PartialEq for ResTryDecreaseKey
impl Copy for ResTryDecreaseKey
impl Eq for ResTryDecreaseKey
impl StructuralPartialEq for ResTryDecreaseKey
Auto Trait Implementations§
impl Freeze for ResTryDecreaseKey
impl RefUnwindSafe for ResTryDecreaseKey
impl Send for ResTryDecreaseKey
impl Sync for ResTryDecreaseKey
impl Unpin for ResTryDecreaseKey
impl UnwindSafe for ResTryDecreaseKey
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
)