Struct amadeus::par_stream::Cloned[][src]

#[must_use]
pub struct Cloned<P, T, Input> { /* fields omitted */ }

Implementations

impl<P, T, Input> Cloned<P, T, Input>[src]

pub fn new(pipe: P) -> Cloned<P, T, Input>[src]

Constructs a new Cloned.

Trait Implementations

impl<'a, P, Input, T> DistributedPipe<&'a Input> for Cloned<P, T, Input> where
    T: 'a + Clone,
    P: DistributedPipe<&'a Input, Output = &'a T>, 
[src]

type Output = T

type Task = ClonedTask<<P as DistributedPipe<&'a Input>>::Task>

pub fn task(&self) -> <Cloned<P, T, Input> as DistributedPipe<&'a Input>>::Task[src]

fn inspect<F>(self, f: F) -> Inspect<Self, F> where
    F: FnMut<(&Self::Output,), Output = ()> + Clone + ProcessSend + 'static, 
[src]

fn update<F>(self, f: F) -> Update<Self, F> where
    F: FnMut<(&mut Self::Output,), Output = ()> + Clone + ProcessSend + 'static, 
[src]

fn map<B, F>(self, f: F) -> Map<Self, F> where
    F: FnMut<(Self::Output,), Output = B> + Clone + ProcessSend + 'static, 
[src]

fn flat_map<B, F>(self, f: F) -> FlatMap<Self, F> where
    F: FnMut<(Self::Output,), Output = B> + Clone + ProcessSend + 'static,
    B: Stream, 
[src]

fn filter<F>(self, f: F) -> Filter<Self, F> where
    F: FnMut<(&Self::Output,), Output = bool> + Clone + ProcessSend + 'static, 
[src]

fn cloned<'a, T>(self) -> Cloned<Self, T, Input> where
    Self: DistributedPipe<&'a Input, Output = &'a T>,
    Input: 'a,
    T: Clone + 'a, 
[src]

fn left_join<K, V1, V2>(
    self,
    right: impl IntoIterator<Item = (K, V2)>
) -> LeftJoin<Self, K, V1, V2> where
    Self: DistributedPipe<Input, Output = (K, V1)>,
    K: Eq + Hash + Clone + ProcessSend + 'static,
    V1: 'static,
    V2: Clone + ProcessSend + 'static, 
[src]

fn inner_join<K, V1, V2>(
    self,
    right: impl IntoIterator<Item = (K, V2)>
) -> InnerJoin<Self, K, V1, V2> where
    Self: DistributedPipe<Input, Output = (K, V1)>,
    K: Eq + Hash + Clone + ProcessSend + 'static,
    V1: 'static,
    V2: Clone + ProcessSend + 'static, 
[src]

fn pipe<S>(self, sink: S) -> Pipe<Self, S> where
    S: DistributedSink<Self::Output>, 
[src]

fn fork<A, B, RefAItem>(
    self,
    sink: A,
    sink_ref: B
) -> Fork<Self, A, B, &'static Self::Output> where
    A: DistributedSink<Self::Output>,
    B: for<'a> DistributedSink<&'a Self::Output>, 
[src]

fn for_each<F>(self, f: F) -> ForEach<Self, F> where
    F: FnMut<(Self::Output,), Output = ()> + Clone + ProcessSend + 'static, 
[src]

fn fold<ID, F, B>(self, identity: ID, op: F) -> Fold<Self, ID, F, B> where
    F: FnMut<(B, Either<Self::Output, B>), Output = B> + Clone + ProcessSend + 'static,
    B: ProcessSend + 'static,
    ID: FnMut<(), Output = B> + Clone + ProcessSend + 'static, 
[src]

fn group_by<S, A, B>(self, sink: S) -> GroupBy<Self, S> where
    Self: DistributedPipe<Input, Output = (A, B)>,
    S: DistributedSink<B>,
    A: Eq + Hash + ProcessSend + 'static,
    <<S as DistributedSink<B>>::Pipe as DistributedPipe<B>>::Task: Clone,
    <<S as DistributedSink<B>>::Pipe as DistributedPipe<B>>::Task: ProcessSend,
    <<S as DistributedSink<B>>::Pipe as DistributedPipe<B>>::Task: 'static,
    <S as DistributedSink<B>>::ReduceA: 'static,
    <S as DistributedSink<B>>::ReduceC: Clone,
    <S as DistributedSink<B>>::Done: ProcessSend,
    <S as DistributedSink<B>>::Done: 'static, 
[src]

fn histogram(self) -> Histogram<Self> where
    Self::Output: Hash,
    Self::Output: Ord,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn sort_n_by<F>(self, n: usize, cmp: F) -> Sort<Self, F> where
    F: Fn<(&Self::Output, &Self::Output), Output = Ordering> + Clone + ProcessSend + 'static,
    Self::Output: Clone,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn count(self) -> Count<Self>[src]

fn sum<B>(self) -> Sum<Self, B> where
    B: Sum<Self::Output> + Sum<B> + ProcessSend + 'static, 
[src]

fn mean(self) -> Mean<Self> where
    Self: DistributedPipe<Input, Output = f64>, 
[src]

fn stddev(self) -> StdDev<Self> where
    Self: DistributedPipe<Input, Output = f64>, 
[src]

fn combine<F>(self, f: F) -> Combine<Self, F> where
    F: FnMut<(Self::Output, Self::Output), Output = Self::Output> + Clone + ProcessSend + 'static,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn max(self) -> Max<Self> where
    Self::Output: Ord,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn max_by<F>(self, f: F) -> MaxBy<Self, F> where
    F: FnMut<(&Self::Output, &Self::Output), Output = Ordering> + Clone + ProcessSend + 'static,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn max_by_key<F, B>(self, f: F) -> MaxByKey<Self, F> where
    F: FnMut<(&Self::Output,), Output = B> + Clone + ProcessSend + 'static,
    B: Ord + 'static,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn min(self) -> Min<Self> where
    Self::Output: Ord,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn min_by<F>(self, f: F) -> MinBy<Self, F> where
    F: FnMut<(&Self::Output, &Self::Output), Output = Ordering> + Clone + ProcessSend + 'static,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn min_by_key<F, B>(self, f: F) -> MinByKey<Self, F> where
    F: FnMut<(&Self::Output,), Output = B> + Clone + ProcessSend + 'static,
    B: Ord + 'static,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn most_frequent(
    self,
    n: usize,
    probability: f64,
    tolerance: f64
) -> MostFrequent<Self> where
    Self::Output: Hash,
    Self::Output: Eq,
    Self::Output: Clone,
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn most_distinct<A, B>(
    self,
    n: usize,
    probability: f64,
    tolerance: f64,
    error_rate: f64
) -> MostDistinct<Self> where
    Self: DistributedPipe<Input, Output = (A, B)>,
    A: Hash + Eq + Clone + ProcessSend + 'static,
    B: Hash + 'static, 
[src]

fn sample_unstable(self, samples: usize) -> SampleUnstable<Self> where
    Self::Output: ProcessSend,
    Self::Output: 'static, 
[src]

fn all<F>(self, f: F) -> All<Self, F> where
    F: FnMut<(Self::Output,), Output = bool> + Clone + ProcessSend + 'static, 
[src]

fn any<F>(self, f: F) -> Any<Self, F> where
    F: FnMut<(Self::Output,), Output = bool> + Clone + ProcessSend + 'static, 
[src]

fn collect<B>(self) -> Collect<Self, B> where
    B: FromDistributedStream<Self::Output>, 
[src]

impl<'a, P, Input, T> ParallelPipe<&'a Input> for Cloned<P, T, Input> where
    T: 'a + Clone,
    P: ParallelPipe<&'a Input, Output = &'a T>, 
[src]

type Output = T

type Task = ClonedTask<<P as ParallelPipe<&'a Input>>::Task>

pub fn task(&self) -> <Cloned<P, T, Input> as ParallelPipe<&'a Input>>::Task[src]

fn inspect<F>(self, f: F) -> Inspect<Self, F> where
    F: FnMut(&Self::Output) + Clone + Send + 'static, 
[src]

fn update<F>(self, f: F) -> Update<Self, F> where
    F: FnMut(&mut Self::Output) + Clone + Send + 'static, 
[src]

fn map<B, F>(self, f: F) -> Map<Self, F> where
    F: FnMut(Self::Output) -> B + Clone + Send + 'static, 
[src]

fn flat_map<B, F>(self, f: F) -> FlatMap<Self, F> where
    F: FnMut(Self::Output) -> B + Clone + Send + 'static,
    B: Stream, 
[src]

fn filter<F>(self, f: F) -> Filter<Self, F> where
    F: FnMut(&Self::Output) -> bool + Clone + Send + 'static, 
[src]

fn cloned<'a, T>(self) -> Cloned<Self, T, Input> where
    Self: ParallelPipe<&'a Input, Output = &'a T>,
    Input: 'a,
    T: Clone + 'a, 
[src]

fn left_join<K, V1, V2>(
    self,
    right: impl IntoIterator<Item = (K, V2)>
) -> LeftJoin<Self, K, V1, V2> where
    Self: ParallelPipe<Input, Output = (K, V1)>,
    K: Eq + Hash + Clone + Send + 'static,
    V1: 'static,
    V2: Clone + Send + 'static, 
[src]

fn inner_join<K, V1, V2>(
    self,
    right: impl IntoIterator<Item = (K, V2)>
) -> InnerJoin<Self, K, V1, V2> where
    Self: ParallelPipe<Input, Output = (K, V1)>,
    K: Eq + Hash + Clone + Send + 'static,
    V1: 'static,
    V2: Clone + Send + 'static, 
[src]

fn pipe<S>(self, sink: S) -> Pipe<Self, S> where
    S: ParallelSink<Self::Output>, 
[src]

fn fork<A, B, RefAItem>(
    self,
    sink: A,
    sink_ref: B
) -> Fork<Self, A, B, &'static Self::Output> where
    A: ParallelSink<Self::Output>,
    B: for<'a> ParallelSink<&'a Self::Output>, 
[src]

fn for_each<F>(self, f: F) -> ForEach<Self, F> where
    F: FnMut(Self::Output) + Clone + Send + 'static, 
[src]

fn fold<ID, F, B>(self, identity: ID, op: F) -> Fold<Self, ID, F, B> where
    F: FnMut(B, Either<Self::Output, B>) -> B + Clone + Send + 'static,
    B: Send + 'static,
    ID: FnMut() -> B + Clone + Send + 'static, 
[src]

fn group_by<S, A, B>(self, sink: S) -> GroupBy<Self, S> where
    Self: ParallelPipe<Input, Output = (A, B)>,
    S: ParallelSink<B>,
    A: Eq + Hash + Send + 'static,
    <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: Clone,
    <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: Send,
    <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: 'static,
    <S as ParallelSink<B>>::ReduceA: 'static,
    <S as ParallelSink<B>>::ReduceC: Clone,
    <S as ParallelSink<B>>::Done: Send,
    <S as ParallelSink<B>>::Done: 'static, 
[src]

fn histogram(self) -> Histogram<Self> where
    Self::Output: Hash,
    Self::Output: Ord,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn sort_n_by<F>(self, n: usize, cmp: F) -> Sort<Self, F> where
    F: Fn(&Self::Output, &Self::Output) -> Ordering + Clone + Send + 'static,
    Self::Output: Clone,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn count(self) -> Count<Self>[src]

fn sum<B>(self) -> Sum<Self, B> where
    B: Sum<Self::Output> + Sum<B> + Send + 'static, 
[src]

fn mean(self) -> Mean<Self> where
    Self: ParallelPipe<Input, Output = f64>, 
[src]

fn stddev(self) -> StdDev<Self> where
    Self: ParallelPipe<Input, Output = f64>, 
[src]

fn combine<F>(self, f: F) -> Combine<Self, F> where
    F: FnMut(Self::Output, Self::Output) -> Self::Output + Clone + Send + 'static,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn max(self) -> Max<Self> where
    Self::Output: Ord,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn max_by<F>(self, f: F) -> MaxBy<Self, F> where
    F: FnMut(&Self::Output, &Self::Output) -> Ordering + Clone + Send + 'static,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn max_by_key<F, B>(self, f: F) -> MaxByKey<Self, F> where
    F: FnMut(&Self::Output) -> B + Clone + Send + 'static,
    B: Ord + 'static,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn min(self) -> Min<Self> where
    Self::Output: Ord,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn min_by<F>(self, f: F) -> MinBy<Self, F> where
    F: FnMut(&Self::Output, &Self::Output) -> Ordering + Clone + Send + 'static,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn min_by_key<F, B>(self, f: F) -> MinByKey<Self, F> where
    F: FnMut(&Self::Output) -> B + Clone + Send + 'static,
    B: Ord + 'static,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn most_frequent(
    self,
    n: usize,
    probability: f64,
    tolerance: f64
) -> MostFrequent<Self> where
    Self::Output: Hash,
    Self::Output: Eq,
    Self::Output: Clone,
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn most_distinct<A, B>(
    self,
    n: usize,
    probability: f64,
    tolerance: f64,
    error_rate: f64
) -> MostDistinct<Self> where
    Self: ParallelPipe<Input, Output = (A, B)>,
    A: Hash + Eq + Clone + Send + 'static,
    B: Hash + 'static, 
[src]

fn sample_unstable(self, samples: usize) -> SampleUnstable<Self> where
    Self::Output: Send,
    Self::Output: 'static, 
[src]

fn all<F>(self, f: F) -> All<Self, F> where
    F: FnMut(Self::Output) -> bool + Clone + Send + 'static, 
[src]

fn any<F>(self, f: F) -> Any<Self, F> where
    F: FnMut(Self::Output) -> bool + Clone + Send + 'static, 
[src]

fn collect<B>(self) -> Collect<Self, B> where
    B: FromParallelStream<Self::Output>, 
[src]

Auto Trait Implementations

impl<P, T, Input> RefUnwindSafe for Cloned<P, T, Input> where
    P: RefUnwindSafe

impl<P, T, Input> Send for Cloned<P, T, Input> where
    P: Send

impl<P, T, Input> Sync for Cloned<P, T, Input> where
    P: Sync

impl<P, T, Input> Unpin for Cloned<P, T, Input> where
    P: Unpin

impl<P, T, Input> UnwindSafe for Cloned<P, T, Input> where
    P: UnwindSafe

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<A, B> Downcast<A> for B where
    A: DowncastFrom<B>, 
[src]

pub fn downcast(self) -> Result<A, DowncastError>[src]

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

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

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> Type for T[src]

pub const METATYPE: MetaType[src]

Enum describing whether a type is TraitObject, Slice or Concrete.

type Meta = Concrete

Type of metadata for type.

pub fn meta(self: *const T) -> <T as Type>::Meta[src]

Retrieve TraitObject, Slice or Concrete meta data respectively for a type

pub fn data(self: *const T) -> *const ()[src]

Retrieve pointer to the data

pub fn data_mut(self: *mut T) -> *mut ()[src]

Retrieve mut pointer to the data

pub fn dangling(_t: <T as Type>::Meta) -> NonNull<T>[src]

Create a dangling non-null *const Self with the provided Self::Meta.

pub fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T[src]

Create a *mut Self with the provided Self::Meta.

fn meta_type(self: *const Self) -> MetaType[src]

Helper method describing whether a type is TraitObject, Slice or Concrete.

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

pub default fn meta(self: *const T) -> <T as Type>::Meta[src]

Retrieve TraitObject, Slice or Concrete meta data respectively for a type

pub default fn data(self: *const T) -> *const ()[src]

Retrieve pointer to the data

pub default fn data_mut(self: *mut T) -> *mut ()[src]

Retrieve mut pointer to the data

pub default fn dangling(t: <T as Type>::Meta) -> NonNull<T>[src]

Create a dangling non-null *const Self with the provided Self::Meta.

pub default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T[src]

Create a *mut Self with the provided Self::Meta.

const METATYPE: MetaType[src]

Enum describing whether a type is TraitObject, Slice or Concrete.

type Meta: 'static

Type of metadata for type.

fn meta_type(self: *const Self) -> MetaType[src]

Helper method describing whether a type is TraitObject, Slice or Concrete.

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

pub fn vzip(self) -> V