1.43.0[][src]Struct prcn_lib::prelude::__std_iter::OnceWith

pub struct OnceWith<F> { /* fields omitted */ }

An iterator that yields a single element of type A by applying the provided closure F: FnOnce() -> A.

This struct is created by the once_with function. See its documentation for more.

Trait Implementations

impl<F> Clone for OnceWith<F> where
    F: Clone
[src]

impl<F> Debug for OnceWith<F> where
    F: Debug
[src]

impl<A, F> DoubleEndedIterator for OnceWith<F> where
    F: FnOnce() -> A, 
[src]

impl<A, F> ExactSizeIterator for OnceWith<F> where
    F: FnOnce() -> A, 
[src]

impl<A, F> FusedIterator for OnceWith<F> where
    F: FnOnce() -> A, 
[src]

impl<A, F> Iterator for OnceWith<F> where
    F: FnOnce() -> A, 
[src]

type Item = A

The type of the elements being iterated over.

impl<A, F> TrustedLen for OnceWith<F> where
    F: FnOnce() -> A, 
[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for OnceWith<F> where
    F: RefUnwindSafe

impl<F> Send for OnceWith<F> where
    F: Send

impl<F> Sync for OnceWith<F> where
    F: Sync

impl<F> Unpin for OnceWith<F> where
    F: Unpin

impl<F> UnwindSafe for OnceWith<F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<N, E, I> ElementIterator<N, E> for I where
    I: Iterator<Item = Element<N, E>> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<I> ItertoolsNum for I where
    I: Iterator + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,