[−][src]Struct dary_heap::PeekMut
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]
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]
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, D> Send for PeekMut<'a, T, D> where
D: Send,
T: Send,
[src]
D: Send,
T: Send,
impl<'a, T, D> Sync for PeekMut<'a, T, D> where
D: Sync,
T: Sync,
[src]
D: Sync,
T: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,