pub struct RefMut<'a, K: 'a + Hash + Eq, T: 'a, C: 'a + Compare<T>> { /* private fields */ }
Expand description
Structure wrapping a mutable reference to any item on a BinaryHeap
.
This struct
is created by the get_mut
method on BinaryHeap
. See
its documentation for more.
returns the key of the heap item.
returns a key-value pair for this heap item.
returns a mutable key-value pair for this heap item.
modifying the key is not possible. Only the value is mutable.
Formats the value using the given formatter.
Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Executes the destructor for this type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.