Struct DrainSorted

struct DrainSorted<'a, T: Ord, A: Allocator = crate::alloc::Global> { ... }

A draining iterator over the elements of a BinaryHeap.

This struct is created by [BinaryHeap::drain_sorted()]. See its documentation for more.

Implementations

impl<'a, T: Ord, A: Allocator> DrainSorted<'a, T, A>

fn allocator(self: &Self) -> &A

Returns a reference to the underlying allocator.

impl<'a, T, A = Global> UnwindSafe for DrainSorted<'a, T, A>

impl<'a, T, A> Freeze for DrainSorted<'a, T, A>

impl<'a, T, A> RefUnwindSafe for DrainSorted<'a, T, A>

impl<'a, T, A> Send for DrainSorted<'a, T, A>

impl<'a, T, A> Sync for DrainSorted<'a, T, A>

impl<'a, T, A> Unpin for DrainSorted<'a, T, A>

impl<'a, T: $crate::fmt::Debug + Ord, A: $crate::fmt::Debug + Allocator> Debug for DrainSorted<'a, T, A>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<'a, T: Ord, A: Allocator> Drop for DrainSorted<'a, T, A>

fn drop(self: &mut Self)

Removes heap elements in heap order.

impl<I> IntoIterator for DrainSorted<'a, T, A>

fn into_iter(self: Self) -> I

impl<T> Any for DrainSorted<'a, T, A>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for DrainSorted<'a, T, A>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for DrainSorted<'a, T, A>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for DrainSorted<'a, T, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for DrainSorted<'a, T, A>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for DrainSorted<'a, T, A>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for DrainSorted<'a, T, A>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<T: Ord, A: Allocator> ExactSizeIterator for DrainSorted<'_, T, A>

impl<T: Ord, A: Allocator> FusedIterator for DrainSorted<'_, T, A>

impl<T: Ord, A: Allocator> Iterator for DrainSorted<'_, T, A>

fn next(self: &mut Self) -> Option<T>
fn size_hint(self: &Self) -> (usize, Option<usize>)

impl<T: Ord, A: Allocator> TrustedLen for DrainSorted<'_, T, A>