Struct IntoIter

pub struct IntoIter<T, A: Allocator = Global> { pub(in ::collections::binary_heap) iter: IntoIter<T, A> }

An owning iterator over the elements of a BinaryHeap.

This struct is created by [BinaryHeap::into_iter()] (provided by the IntoIterator trait). See its documentation for more.

Fields

iter: IntoIter<T, A>

Implementations

impl<T, A: Allocator> IntoIter<T, A>

fn allocator(&self) -> &A

Returns a reference to the underlying allocator.

Trait Implementations

impl<I> AsVecIntoIter for IntoIter<I>

type Item = I;
fn as_into_iter(&mut self) -> &mut IntoIter<Self::Item>

impl<I, A: Allocator> InPlaceIterable for IntoIter<I, A>

const EXPAND_BY: Option<NonZero<usize>> = _;
const MERGE_BY: Option<NonZero<usize>> = _;

impl<T> Default for IntoIter<T>

fn default() -> Self

Creates an empty binary_heap::IntoIter.

# use std::collections::binary_heap;
let iter: binary_heap::IntoIter<u8> = Default::default();
assert_eq!(iter.len(), 0);

impl<T, A: Allocator> DoubleEndedIterator for IntoIter<T, A>

fn next_back(&mut self) -> Option<T>

impl<T, A: Allocator> ExactSizeIterator for IntoIter<T, A>

fn is_empty(&self) -> bool

impl<T, A: Allocator> FusedIterator for IntoIter<T, A>

impl<T, A: Allocator> Iterator for IntoIter<T, A>

type Item = T;
fn next(&mut self) -> Option<T>
fn size_hint(&self) -> (usize, Option<usize>)

impl<T, A: Allocator> SourceIter for IntoIter<T, A>

type Source = IntoIter<T, A>;
unsafe fn as_inner(&mut self) -> &mut Self::Source

impl<T, A: Allocator> TrustedFused for IntoIter<T, A>

impl<T: Clone, A: Clone + Allocator> Clone for IntoIter<T, A>

fn clone(&self) -> IntoIter<T, A>

impl<T: Debug, A: Allocator> Debug for IntoIter<T, A>

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

Auto Trait Implementations

impl<T, A> Freeze for IntoIter<T, A> where IntoIter<T, A>: Freeze,

impl<T, A> RefUnwindSafe for IntoIter<T, A> where IntoIter<T, A>: RefUnwindSafe,

impl<T, A> Send for IntoIter<T, A> where IntoIter<T, A>: Send,

impl<T, A> Sync for IntoIter<T, A> where IntoIter<T, A>: Sync,

impl<T, A> Unpin for IntoIter<T, A> where IntoIter<T, A>: Unpin,

impl<T, A> UnsafeUnpin for IntoIter<T, A> where IntoIter<T, A>: UnsafeUnpin,

impl<T, A> UnwindSafe for IntoIter<T, A> where IntoIter<T, A>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for IntoIter<T, A> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for IntoIter<T, A> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for IntoIter<T, A> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for IntoIter<T, A> where T: ?Sized,

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

impl<T> CloneToUninit for IntoIter<T, A> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for IntoIter<T, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for IntoIter<T, A> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for IntoIter<T, A>

impl<T> ToOwned for IntoIter<T, A> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for IntoIter<T, A> where U: From<T>,

fn into(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<U> for IntoIter<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 IntoIter<T, A> where U: TryFrom<T>,

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