[][src]Struct dary_heap::PeekMut

pub struct PeekMut<'a, T: 'a + Ord, D: Arity> { /* fields omitted */ }

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

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

Implementations

impl<'a, T: Ord, D: Arity> PeekMut<'a, T, D>[src]

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

Removes the peeked value from the heap and returns it.

Trait Implementations

impl<T: Ord + Debug, D: Arity> Debug for PeekMut<'_, T, D>[src]

impl<T: Ord, D: Arity> Deref for PeekMut<'_, T, D>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Ord, D: Arity> DerefMut for PeekMut<'_, T, D>[src]

impl<T: Ord, D: Arity> Drop for PeekMut<'_, T, D>[src]

Auto Trait Implementations

impl<'a, T, D> RefUnwindSafe for PeekMut<'a, T, D> where
    D: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<'a, T, D> Send for PeekMut<'a, T, D> where
    D: Send,
    T: Send
[src]

impl<'a, T, D> Sync for PeekMut<'a, T, D> where
    D: Sync,
    T: Sync
[src]

impl<'a, T, D> Unpin for PeekMut<'a, T, D>[src]

impl<'a, T, D> !UnwindSafe for PeekMut<'a, T, D>[src]

Blanket Implementations

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

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

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

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.