[][src]Struct parallel_stream::Map

pub struct Map<T> { /* fields omitted */ }

A parallel stream that maps value of another stream with a function.

Implementations

impl<T: Send + 'static> Map<T>[src]

pub fn new<S, F, Fut>(stream: S, f: F) -> Self where
    S: ParallelStream,
    F: FnMut(S::Item) -> Fut + Send + Sync + Copy + 'static,
    Fut: Future<Output = T> + Send
[src]

Create a new instance of Map.

Trait Implementations

impl<T: Debug> Debug for Map<T>[src]

impl<T: Send + 'static> ParallelStream for Map<T>[src]

type Item = T

The type of items yielded by this stream.

impl<'__pin, T> Unpin for Map<T> where
    __Origin<'__pin, T>: Unpin
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Map<T>

impl<T> Send for Map<T> where
    T: Send

impl<T> Sync for Map<T> where
    T: Send

impl<T> !UnwindSafe for Map<T>

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<T> From<T> for T[src]

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

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.