Struct RebuildOnDrop
pub(in ::collections::binary_heap) struct RebuildOnDrop<'a, T: Ord, A: Allocator = Global> { pub(in ::collections::binary_heap) heap: &'a mut BinaryHeap<T, A>, pub(in ::collections::binary_heap) rebuild_from: usize }
Fields
heap: &'a mut BinaryHeap<T, A>rebuild_from: usize
Trait Implementations
impl<T: Ord, A: Allocator> Drop for RebuildOnDrop<'_, T, A>
fn drop(&mut self)
Auto Trait Implementations
impl<'a, T, A = Global> !UnwindSafe for RebuildOnDrop<'a, T, A>
impl<'a, T, A> Freeze for RebuildOnDrop<'a, T, A>
where
&'a mut BinaryHeap<T, A>: Freeze,
impl<'a, T, A> RefUnwindSafe for RebuildOnDrop<'a, T, A>
where
&'a mut BinaryHeap<T, A>: RefUnwindSafe,
impl<'a, T, A> Send for RebuildOnDrop<'a, T, A>
where
&'a mut BinaryHeap<T, A>: Send,
impl<'a, T, A> Sync for RebuildOnDrop<'a, T, A>
where
&'a mut BinaryHeap<T, A>: Sync,
impl<'a, T, A> Unpin for RebuildOnDrop<'a, T, A>
where
&'a mut BinaryHeap<T, A>: Unpin,
impl<'a, T, A> UnsafeUnpin for RebuildOnDrop<'a, T, A>
where
&'a mut BinaryHeap<T, A>: UnsafeUnpin,
Blanket Implementations
impl<T> Any for RebuildOnDrop<'a, T, A>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RebuildOnDrop<'a, T, A>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RebuildOnDrop<'a, T, A>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RebuildOnDrop<'a, T, A>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for RebuildOnDrop<'a, T, A>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for RebuildOnDrop<'a, T, A>
impl<T, U> Into<U> for RebuildOnDrop<'a, T, A>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RebuildOnDrop<'a, T, A>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for RebuildOnDrop<'a, T, A>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>