[−][src]Struct staticvec::StaticHeapPeekMut
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]
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,
T: RefUnwindSafe,
impl<'a, const N: usize, T> Send for StaticHeapPeekMut<'a, T, N> where
T: Send,
T: Send,
impl<'a, const N: usize, T> Sync for StaticHeapPeekMut<'a, T, N> where
T: Sync,
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]
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,
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.
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>,