Struct maelstrom_util::heap::HeapIndex
source · pub struct HeapIndex(/* private fields */);
Expand description
An index value in Heap
. These are provided to the client via HeapDeps::update_index
.
The client then provides them back to the heap when calling Heap::sift_up
,
Heap::sift_down
, and Heap::remove
.
Trait Implementations§
source§impl Ord for HeapIndex
impl Ord for HeapIndex
source§impl PartialOrd for HeapIndex
impl PartialOrd for HeapIndex
impl Copy for HeapIndex
impl Eq for HeapIndex
impl StructuralPartialEq for HeapIndex
Auto Trait Implementations§
impl Freeze for HeapIndex
impl RefUnwindSafe for HeapIndex
impl Send for HeapIndex
impl Sync for HeapIndex
impl Unpin for HeapIndex
impl UnwindSafe for HeapIndex
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
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.