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