Struct std::collections::binary_heap::PeekMut1.12.0[][src]

pub struct PeekMut<'a, T> where
    T: 'a + Ord
{ heap: &'a mut BinaryHeap<T>, sift: bool, }
This is supported on non-no_global_oom_handling only.
Expand description

Structure wrapping a mutable reference to the greatest item on a BinaryHeap.

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

Fields

heap: &'a mut BinaryHeap<T>sift: bool

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

Performs the conversion.

Performs the conversion.

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.