Struct IntoIter

pub struct IntoIter<T, A: Allocator + Clone = Global> { pub(in ::collections::btree::set) iter: IntoIter<T, SetValZST, A> }

An owning iterator over the items of a BTreeSet in ascending order.

This struct is created by the into_iter method on BTreeSet (provided by the IntoIterator trait). See its documentation for more.

Fields

iter: IntoIter<T, SetValZST, A>

Trait Implementations

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

fn default() -> Self

Creates an empty btree_set::IntoIter.

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

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

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

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

fn len(&self) -> usize

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

impl<T, A: Allocator + Clone> 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 + Clone> TrustedLen for IntoIter<T, A>

impl<T: Debug, A: Debug + Allocator + Clone> 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, SetValZST, A>: Freeze,

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

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

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

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

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

impl<T, A> UnwindSafe for IntoIter<T, A> where IntoIter<T, SetValZST, 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> 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, 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>