[][src]Struct staticvec::StaticHeapPeekMut

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

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.

Methods

impl<'a, T: Ord, const N: usize> StaticHeapPeekMut<'a, T, N>[src]

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

Removes the peeked value from the heap and returns it.

Trait Implementations

impl<'_, T: Ord + Debug, const N: usize> Debug for StaticHeapPeekMut<'_, T, N>[src]

impl<'_, T: Ord, const N: usize> Deref for StaticHeapPeekMut<'_, T, N>[src]

type Target = T

The resulting type after dereferencing.

impl<'_, T: Ord, const N: usize> DerefMut for StaticHeapPeekMut<'_, T, N>[src]

impl<'_, T: Ord, const N: usize> Drop for StaticHeapPeekMut<'_, T, N>[src]

Auto Trait Implementations

impl<'a, const N: usize, T> RefUnwindSafe for StaticHeapPeekMut<'a, T, N> where
    T: RefUnwindSafe

impl<'a, const N: usize, T> Send for StaticHeapPeekMut<'a, T, N> where
    T: Send

impl<'a, const N: usize, T> Sync for StaticHeapPeekMut<'a, T, N> where
    T: Sync

impl<'a, const N: usize, T> Unpin for StaticHeapPeekMut<'a, T, N>

impl<'a, const N: usize, T> !UnwindSafe for StaticHeapPeekMut<'a, T, N>

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.