Struct staticvec::StaticHeapPeekMut
source · [−]Expand description
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.
Implementations
sourceimpl<'a, T: Ord, const N: usize> StaticHeapPeekMut<'a, T, N>
impl<'a, T: Ord, const N: usize> StaticHeapPeekMut<'a, T, N>
sourcepub fn pop(this: StaticHeapPeekMut<'a, T, N>) -> T
pub fn pop(this: StaticHeapPeekMut<'a, T, N>) -> T
Removes the peeked value from the heap and returns it.
Trait Implementations
sourceimpl<T: Ord, const N: usize> Deref for StaticHeapPeekMut<'_, T, N>
impl<T: Ord, const N: usize> Deref for StaticHeapPeekMut<'_, T, N>
sourceimpl<T: Ord, const N: usize> DerefMut for StaticHeapPeekMut<'_, T, N>
impl<T: Ord, const N: usize> DerefMut for StaticHeapPeekMut<'_, T, N>
Auto Trait Implementations
impl<'a, T, const N: usize> RefUnwindSafe for StaticHeapPeekMut<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for StaticHeapPeekMut<'a, T, N>where
T: Send,
impl<'a, T, const N: usize> Sync for StaticHeapPeekMut<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Unpin for StaticHeapPeekMut<'a, T, N>
impl<'a, T, const N: usize> !UnwindSafe for StaticHeapPeekMut<'a, T, N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more