pub struct StaticHeapPeekMut<'a, T: 'a + Ord, const N: usize> { /* private fields */ }
Expand description

A struct wrapping a mutable reference to the greatest (or “maximal”) item in a StaticHeap.

This struct is created by the peek_mut method on StaticHeap. See its documentation for more.

Implementations

Removes the peeked value from the heap and returns it.

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.