Struct trait_based_collection::priority_queue::PeekMut
source · [−]pub struct PeekMut<'a, T>where
T: 'a + Ord,{ /* private fields */ }
Expand description
A mutable reference to an element in a BinaryHeap
that can be used to modify the element
while maintaining the heap property. The element is only modified when the PeekMut
is
dropped and the user has tried to modify the element (by mutably dereferencing the PeekMut
).
If the user has not tried to modify the element, the element is not modified.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for PeekMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for PeekMut<'a, T>where
T: Send,
impl<'a, T> Sync for PeekMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for PeekMut<'a, T>
impl<'a, T> !UnwindSafe for PeekMut<'a, T>
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