#[repr(C)]pub struct MinHeapPayload {
pub element_descriptor: *const TypeDescriptor,
pub items: BinaryHeap<Reverse<HeapEntry>>,
}Expand description
The MinHeap[T] payload (§11.2): a min-heap via Reverse<HeapEntry>.
Fields§
§element_descriptor: *const TypeDescriptorThe descriptor for every element, or null when the construction site had
no static element type. See MaxHeapPayload::element_descriptor.
items: BinaryHeap<Reverse<HeapEntry>>The elements, wrapped in Reverse so the smallest surfaces first.
Implementations§
Source§impl MinHeapPayload
impl MinHeapPayload
Sourcepub fn element(&self) -> Option<&'static TypeDescriptor>
pub fn element(&self) -> Option<&'static TypeDescriptor>
The element label, or None when this heap was never told its element
type.
Auto Trait Implementations§
impl !RefUnwindSafe for MinHeapPayload
impl !Send for MinHeapPayload
impl !Sync for MinHeapPayload
impl !UnwindSafe for MinHeapPayload
impl Freeze for MinHeapPayload
impl Unpin for MinHeapPayload
impl UnsafeUnpin for MinHeapPayload
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