[][src]Trait amadeus::par_sink::FolderSync

pub trait FolderSync<Item> {
    type State;
    type Done;
    fn zero(&mut self) -> Self::State;
fn push(&mut self, state: &mut Self::State, item: Item);
fn done(&mut self, state: Self::State) -> Self::Done; }

Associated Types

type State

type Done

Loading content...

Required methods

fn zero(&mut self) -> Self::State

fn push(&mut self, state: &mut Self::State, item: Item)

fn done(&mut self, state: Self::State) -> Self::Done

Loading content...

Implementors

impl FolderSync<f64> for MeanFolder<StepA>[src]

type State = State

type Done = f64

impl FolderSync<f64> for SDFolder<StepA>[src]

type State = SDState

type Done = f64

impl FolderSync<SDState> for SDFolder<StepB>[src]

type State = SDState

type Done = f64

impl FolderSync<State> for MeanFolder<StepB>[src]

type State = State

type Done = f64

impl<A, B> FolderSync<(A, B)> for MostDistinctFolder where
    A: Clone + Hash + Eq + Send + 'static,
    B: Hash + 'static, 
[src]

type State = Top<A, HyperLogLogMagnitude<B>>

type Done = <MostDistinctFolder as FolderSync<(A, B)>>::State

impl<A, ID, F, Item> FolderSync<Item> for FoldFolder<A, ID, F, Item, StepB> where
    F: FnMut<(Item, Either<A, Item>), Output = Item>,
    ID: FnMut<(), Output = Item>, 
[src]

type State = Item

type Done = <FoldFolder<A, ID, F, Item, StepB> as FolderSync<Item>>::State

impl<B> FolderSync<Vec<(B, usize)>> for HistogramFolder<B, StepB> where
    B: Hash + Ord
[src]

type State = Vec<(B, usize)>

type Done = <HistogramFolder<B, StepB> as FolderSync<Vec<(B, usize)>>>::State

impl<B> FolderSync<HashMap<B, usize, RandomState>> for HistogramFolder<B, StepB> where
    B: Hash + Ord
[src]

type State = Vec<(B, usize)>

type Done = <HistogramFolder<B, StepB> as FolderSync<HashMap<B, usize, RandomState>>>::State

impl<C, Item, B> FolderSync<Item> for C where
    C: CombinerSync<Done = B>,
    Item: Into<Option<B>>, 
[src]

type State = Option<B>

type Done = <C as FolderSync<Item>>::State

impl<F, A, Item> FolderSync<Item> for ReduceFn<F, A> where
    F: FnMut<(A, A), Output = A>,
    Item: Into<Option<A>>, 
[src]

type State = Option<A>

type Done = <ReduceFn<F, A> as FolderSync<Item>>::State

impl<Item> FolderSync<Item> for CountFolder[src]

type State = usize

type Done = <CountFolder as FolderSync<Item>>::State

impl<Item> FolderSync<Item> for HistogramFolder<Item, StepA> where
    Item: Hash + Ord
[src]

type State = HashMap<Item, usize, RandomState>

type Done = <HistogramFolder<Item, StepA> as FolderSync<Item>>::State

impl<Item> FolderSync<Item> for MostFrequentFolder where
    Item: Clone + Hash + Eq + Send + 'static, 
[src]

type State = Top<Item, usize>

type Done = <MostFrequentFolder as FolderSync<Item>>::State

impl<Item> FolderSync<Item> for SampleUnstableFolder[src]

type State = SampleUnstable<Item>

type Done = <SampleUnstableFolder as FolderSync<Item>>::State

impl<Item> FolderSync<Item> for SumZeroFolder<Item> where
    Option<Item>: Sum<Item>, 
[src]

type State = Item

type Done = <SumZeroFolder<Item> as FolderSync<Item>>::State

impl<Item, B> FolderSync<Item> for SumFolder<B> where
    B: Sum<Item> + Sum<B>, 
[src]

type State = B

type Done = <SumFolder<B> as FolderSync<Item>>::State

impl<Item, F> FolderSync<Item> for SortFolder<F> where
    F: Fn<(&Item, &Item), Output = Ordering> + Clone
[src]

type State = Sort<Item, F>

type Done = <SortFolder<F> as FolderSync<Item>>::State

impl<Item, ID, F, B> FolderSync<Item> for FoldFolder<Item, ID, F, B, StepA> where
    F: FnMut<(B, Either<Item, B>), Output = B>,
    ID: FnMut<(), Output = B>, 
[src]

type State = B

type Done = <FoldFolder<Item, ID, F, B, StepA> as FolderSync<Item>>::State

Loading content...