pub enum DecreaseKeyError {
InvalidHandle {
slot: u32,
generation: u32,
},
NewKeyGreaterThanCurrent,
}Expand description
An error returned from FibHeap::decrease_key.
Variants§
InvalidHandle
The provided handle was invalid (e.g., NONE, out of bounds, or pointed to a free node).
The slot and generation fields carry the values from the handle that
was rejected, which is useful for debugging stale or mismatched handles.
Fields
NewKeyGreaterThanCurrent
The new key is greater than current
Trait Implementations§
Source§impl Debug for DecreaseKeyError
impl Debug for DecreaseKeyError
Source§impl Display for DecreaseKeyError
impl Display for DecreaseKeyError
Source§impl Error for DecreaseKeyError
impl Error for DecreaseKeyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DecreaseKeyError
impl PartialEq for DecreaseKeyError
impl Eq for DecreaseKeyError
impl StructuralPartialEq for DecreaseKeyError
Auto Trait Implementations§
impl Freeze for DecreaseKeyError
impl RefUnwindSafe for DecreaseKeyError
impl Send for DecreaseKeyError
impl Sync for DecreaseKeyError
impl Unpin for DecreaseKeyError
impl UnsafeUnpin for DecreaseKeyError
impl UnwindSafe for DecreaseKeyError
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