Struct FromIter

pub struct FromIter<I> { pub(in ::async_iter::from_iter) iter: I }

An async iterator that was created from iterator.

This async iterator is created by the from_iter function. See it documentation for more.

Fields

iter: I

Trait Implementations

impl<I> Unpin for FromIter<I>

impl<I: Clone> Clone for FromIter<I>

fn clone(&self) -> FromIter<I>

impl<I: Debug> Debug for FromIter<I>

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

impl<I: Iterator> AsyncIterator for FromIter<I>

type Item = <I as Iterator>::Item;
fn poll_next(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Option<Self::Item>>
fn size_hint(&self) -> (usize, Option<usize>)

Auto Trait Implementations

impl<I> Freeze for FromIter<I> where I: Freeze,

impl<I> RefUnwindSafe for FromIter<I> where I: RefUnwindSafe,

impl<I> Send for FromIter<I> where I: Send,

impl<I> Sync for FromIter<I> where I: Sync,

impl<I> UnsafeUnpin for FromIter<I> where I: UnsafeUnpin,

impl<I> UnwindSafe for FromIter<I> where I: UnwindSafe,

Blanket Implementations

impl<I> IntoAsyncIterator for FromIter<I> where I: AsyncIterator,

type Item = <I as AsyncIterator>::Item;
type IntoAsyncIter = I;
fn into_async_iter(self) -> <I as IntoAsyncIterator>::IntoAsyncIter

impl<T> Any for FromIter<I> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FromIter<I> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FromIter<I> where T: ?Sized,

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

impl<T> CloneToUninit for FromIter<I> where T: Clone,

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

impl<T> From<T> for FromIter<I>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for FromIter<I> where T: ?Sized,

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

impl<T> SizedTypeProperties for FromIter<I>

impl<T, U> Into<U> for FromIter<I> 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 FromIter<I> 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 FromIter<I> where U: TryFrom<T>,

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