[][src]Struct amadeus_core::par_stream::Map

#[must_use]pub struct Map<P, F> { /* fields omitted */ }

Implementations

impl<P, F> Map<P, F>[src]

pub fn new(pipe: P, f: F) -> Self[src]

Constructs a new Map.

Trait Implementations

impl<P: ParallelPipe<Input>, F, R, Input> DistributedPipe<Input> for Map<P, F> where
    F: FnMut<(P::Output,), Output = R> + Clone + Send + 'static, 
[src]

type Output = R

type Task = MapTask<P::Task, F>

impl<P: ParallelStream, F, R> DistributedStream for Map<P, F> where
    F: FnMut<(P::Item,), Output = R> + Clone + Send + 'static, 
[src]

type Item = R

type Task = MapTask<P::Task, F>

impl<P: ParallelPipe<Input>, F, R, Input> ParallelPipe<Input> for Map<P, F> where
    F: FnMut<(P::Output,), Output = R> + Clone + Send + 'static, 
[src]

type Output = R

type Task = MapTask<P::Task, F>

impl<P: ParallelStream, F, R> ParallelStream for Map<P, F> where
    F: FnMut<(P::Item,), Output = R> + Clone + Send + 'static, 
[src]

type Item = R

type Task = MapTask<P::Task, F>

impl<P, F> PinnedDrop for Map<P, F>[src]

impl<'pin, P, F> Unpin for Map<P, F> where
    __Map<'pin, P, F>: Unpin
[src]

impl<P, F> UnsafeUnpin for Map<P, F>[src]

Auto Trait Implementations

impl<P, F> RefUnwindSafe for Map<P, F> where
    F: RefUnwindSafe,
    P: RefUnwindSafe

impl<P, F> Send for Map<P, F> where
    F: Send,
    P: Send

impl<P, F> Sync for Map<P, F> where
    F: Sync,
    P: Sync

impl<P, F> UnwindSafe for Map<P, F> where
    F: UnwindSafe,
    P: 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<T> From<T> for T[src]

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

impl<T> IntoDistributedStream for T where
    T: DistributedStream
[src]

impl<T> IntoParallelStream for T where
    T: ParallelStream
[src]

type ParStream = T

type Item = <T as ParallelStream>::Item

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>,