Struct ink_storage::collections::binary_heap::PeekMut[][src]

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

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

This struct is created by the BinaryHeap::peek_mut method.

Implementations

impl<'a, T> PeekMut<'a, T> where
    T: PackedLayout + Ord
[src]

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

Removes the peeked value from the heap and returns it.

Trait Implementations

impl<T> Deref for PeekMut<'_, T> where
    T: PackedLayout + Ord
[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for PeekMut<'_, T> where
    T: PackedLayout + Ord
[src]

impl<T> Drop for PeekMut<'_, T> where
    T: PackedLayout + Ord
[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for PeekMut<'a, T>

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

impl<'a, T> !Sync for PeekMut<'a, T>

impl<'a, T> Unpin for PeekMut<'a, T>

impl<'a, T> !UnwindSafe for PeekMut<'a, T>

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<C, T> CoordTranslate for T where
    C: CoordTranslate,
    T: Deref<Target = C>, 

type From = <C as CoordTranslate>::From

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,