Struct IntoIter

struct IntoIter { ... }

An iterator over TokenStream's TokenTrees.

The iteration is "shallow", e.g. the iterator doesn't recurse into delimited groups, and returns whole groups as token trees.

Implementations

impl Clone for IntoIter

fn clone(self: &Self) -> IntoIter

impl Debug for IntoIter

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

impl Freeze for IntoIter

impl Iterator for IntoIter

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

impl RefUnwindSafe for IntoIter

impl Send for IntoIter

impl Sync for IntoIter

impl Unpin for IntoIter

impl UnwindSafe for IntoIter

impl<I> IntoIterator for IntoIter

fn into_iter(self: Self) -> I

impl<T> Any for IntoIter

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for IntoIter

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

impl<T> BorrowMut for IntoIter

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

impl<T> CloneToUninit for IntoIter

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

impl<T> From for IntoIter

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for IntoIter

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for IntoIter

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 IntoIter

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

impl<T, U> TryInto for IntoIter

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