[][src]Struct binary_heap_plus::PeekMut

pub struct PeekMut<'a, T: 'a, C: 'a + Compare<T>> { /* fields omitted */ }

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.

Methods

impl<'a, T, C: Compare<T>> PeekMut<'a, T, C>[src]

pub fn pop(this: PeekMut<'a, T, C>) -> T[src]

Removes the peeked value from the heap and returns it.

Trait Implementations

impl<'a, T, C: Compare<T>> Drop for PeekMut<'a, T, C>[src]

impl<'a, T, C: Compare<T>> DerefMut for PeekMut<'a, T, C>[src]

impl<'a, T: Debug, C: Compare<T>> Debug for PeekMut<'a, T, C>[src]

impl<'a, T, C: Compare<T>> Deref for PeekMut<'a, T, C>[src]

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, T, C> Send for PeekMut<'a, T, C> where
    C: Send,
    T: Send

impl<'a, T, C> Sync for PeekMut<'a, T, C> where
    C: Sync,
    T: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]