Struct amadeus::par_sink::GroupBy[][src]

#[must_use]
pub struct GroupBy<A, B> { /* fields omitted */ }

Implementations

impl<A, B> GroupBy<A, B>[src]

pub fn new(a: A, b: B) -> GroupBy<A, B>[src]

Constructs a new GroupBy.

Trait Implementations

impl<A, B, Item, T, U> DistributedSink<Item> for GroupBy<A, B> where
    T: Eq + Hash + ProcessSend + 'static,
    A: DistributedPipe<Item, Output = (T, U)>,
    B: DistributedSink<U>,
    <<B as DistributedSink<U>>::Pipe as DistributedPipe<U>>::Task: Clone,
    <<B as DistributedSink<U>>::Pipe as DistributedPipe<U>>::Task: ProcessSend,
    <<B as DistributedSink<U>>::Pipe as DistributedPipe<U>>::Task: 'static,
    <B as DistributedSink<U>>::ReduceA: Clone,
    <B as DistributedSink<U>>::ReduceA: ProcessSend,
    <B as DistributedSink<U>>::ReduceA: 'static,
    <B as DistributedSink<U>>::ReduceB: Clone,
    <B as DistributedSink<U>>::ReduceC: Clone,
    <B as DistributedSink<U>>::Done: ProcessSend,
    <B as DistributedSink<U>>::Done: 'static, 
[src]

type Done = IndexMap<T, <B as DistributedSink<U>>::Done, RandomState>

type Pipe = A

type ReduceA = GroupByReducerA<<<B as DistributedSink<U>>::Pipe as DistributedPipe<U>>::Task, <B as DistributedSink<U>>::ReduceA, T, U>

type ReduceB = GroupByReducerB<<B as DistributedSink<U>>::ReduceB, T, <<B as DistributedSink<U>>::ReduceA as ReducerSend<<<B as DistributedSink<U>>::Pipe as DistributedPipe<U>>::Output>>::Done>

type ReduceC = GroupByReducerB<<B as DistributedSink<U>>::ReduceC, T, <<B as DistributedSink<U>>::ReduceB as ReducerProcessSend<<<B as DistributedSink<U>>::ReduceA as Reducer<<<B as DistributedSink<U>>::Pipe as DistributedPipe<U>>::Output>>::Done>>::Done>

pub fn reducers(
    self
) -> (<GroupBy<A, B> as DistributedSink<Item>>::Pipe, <GroupBy<A, B> as DistributedSink<Item>>::ReduceA, <GroupBy<A, B> as DistributedSink<Item>>::ReduceB, <GroupBy<A, B> as DistributedSink<Item>>::ReduceC)
[src]

impl<A, B, Item, T, U> ParallelSink<Item> for GroupBy<A, B> where
    T: Eq + Hash + Send + 'static,
    A: ParallelPipe<Item, Output = (T, U)>,
    B: ParallelSink<U>,
    <<B as ParallelSink<U>>::Pipe as ParallelPipe<U>>::Task: Clone,
    <<B as ParallelSink<U>>::Pipe as ParallelPipe<U>>::Task: Send,
    <<B as ParallelSink<U>>::Pipe as ParallelPipe<U>>::Task: 'static,
    <B as ParallelSink<U>>::ReduceA: Clone,
    <B as ParallelSink<U>>::ReduceA: Send,
    <B as ParallelSink<U>>::ReduceA: 'static,
    <B as ParallelSink<U>>::ReduceC: Clone,
    <B as ParallelSink<U>>::Done: Send,
    <B as ParallelSink<U>>::Done: 'static, 
[src]

type Done = IndexMap<T, <B as ParallelSink<U>>::Done, RandomState>

type Pipe = A

type ReduceA = GroupByReducerA<<<B as ParallelSink<U>>::Pipe as ParallelPipe<U>>::Task, <B as ParallelSink<U>>::ReduceA, T, U>

type ReduceC = GroupByReducerB<<B as ParallelSink<U>>::ReduceC, T, <<B as ParallelSink<U>>::ReduceA as ReducerSend<<<B as ParallelSink<U>>::Pipe as ParallelPipe<U>>::Output>>::Done>

pub fn reducers(
    self
) -> (<GroupBy<A, B> as ParallelSink<Item>>::Pipe, <GroupBy<A, B> as ParallelSink<Item>>::ReduceA, <GroupBy<A, B> as ParallelSink<Item>>::ReduceC)
[src]

Auto Trait Implementations

impl<A, B> RefUnwindSafe for GroupBy<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

impl<A, B> Send for GroupBy<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for GroupBy<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Unpin for GroupBy<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> UnwindSafe for GroupBy<A, B> where
    A: UnwindSafe,
    B: 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 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<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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V