#[repr(C)]pub struct MaxHeapPayload {
pub element_descriptor: *const TypeDescriptor,
pub items: BinaryHeap<HeapEntry>,
}Expand description
The MaxHeap[T] payload (§11.2): a max-heap of HeapEntry.
Fields§
§element_descriptor: *const TypeDescriptorThe descriptor for every element, or null when the construction site had
no static element type. A label: each element carries its own descriptor,
both on its HeapEntry and in its object header. Read it through
MaxHeapPayload::element.
items: BinaryHeap<HeapEntry>The elements, in max-heap order (largest surfaces first).
Implementations§
Source§impl MaxHeapPayload
impl MaxHeapPayload
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 MaxHeapPayload
impl !Send for MaxHeapPayload
impl !Sync for MaxHeapPayload
impl !UnwindSafe for MaxHeapPayload
impl Freeze for MaxHeapPayload
impl Unpin for MaxHeapPayload
impl UnsafeUnpin for MaxHeapPayload
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