Struct st8b7c:f320:99b9:690f:4595:cd17:293a:c069collections8b7c:f320:99b9:690f:4595:cd17:293a:c069inary_heap8b7c:f320:99b9:690f:4595:cd17:293a:c069PeekMut
pub struct PeekMut<'a, T>where    T: 'a + Ord,{ /* private fields */ }
Structure wrapping a mutable reference to the greatest item on a BinaryHeap. This struct is created by the peek_mut method on BinaryHeap. See its documentation for more. Implementations

sourceimpl<'a, T> PeekMut<'a, T>where T: Ord,

source1.18.0 · pub fn pop(this: PeekMut<'a, T>) -> T
Removes the peeked value from the heap and returns it. 


Trait Implementations

source1.17.0 · impl<T> Debug for PeekMut<'_, T>where T: Ord + Debug,

sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>Formats the value using the given formatter. Read more


sourceimpl<T> Deref for PeekMut<'_, T>where T: Ord,

type Target = TThe resulting type after dereferencing.
sourcefn deref(&self) -> &TDereferences the value.

sourceimpl<T> DerefMut for PeekMut<'_, T>where T: Ord,

sourcefn deref_mut(&mut self) -> &mut TMutably dereferences the value.

sourceimpl<T> Drop for PeekMut<'_, T>where T: Ord,

sourcefn drop(&mut self)Executes the destructor for this type. Read more



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> Any for Twhere T: 'static + ?Sized,

sourcefn type_id(&self) -> TypeIdGets the TypeId of self. Read more


sourceimpl<T> Borrow<T> for Twhere T: ?Sized,

sourceconst: unstable · fn borrow(&self) -> &TImmutably borrows from an owned value. Read more


sourceimpl<T> BorrowMut<T> for Twhere T: ?Sized,

sourceconst: unstable · fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more


sourceimpl<T> From<T> for T
sourceconst: unstable · fn from(t: T) -> T
Returns the argument unchanged. 

sourceimpl<T, U> Into<U> for Twhere U: From<T>,

sourceconst: unstable · fn into(self) -> U
Calls U8b7c:f320:99b9:690f:4595:cd17:293a:c069rom(self). That is, this conversion is whatever the implementation of From<T> for U chooses to do. 

sourceimpl<T, U> TryFrom<U> for Twhere U: Into<T>,

type Error = InfallibleThe type returned in the event of a conversion error.
sourceconst: unstable · fn try_from(value: U) -> Result<T, <T as TryFrom<U>>8b7c:f320:99b9:690f:4595:cd17:293a:c069rror>Performs the conversion.

sourceimpl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

type Error = <U as TryFrom<T>>8b7c:f320:99b9:690f:4595:cd17:293a:c069rrorThe type returned in the event of a conversion error.
sourceconst: unstable · fn try_into(self) -> Result<U, <U as TryFrom<T>>8b7c:f320:99b9:690f:4595:cd17:293a:c069rror>Performs the conversion.



    
{'path': 'public/docs/rust/std/collections/binary_heap/struct.peekmut.html', 'source': 'DevDocs.IO'}