[][src]Trait amadeus_core::par_sink::FolderSync

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

Associated Types

type Done

Loading content...

Required methods

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

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

Loading content...

Implementors

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

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

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

type Done = Item

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

type Done = Vec<(B, usize)>

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

type Done = Vec<(B, usize)>

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

type Done = Option<B>

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

type Done = Option<A>

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

type Done = usize

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

type Done = HashMap<Item, usize>

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

type Done = Top<Item, usize>

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

type Done = SASampleUnstable<Item>

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

type Done = Item

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

type Done = B

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

type Done = B

Loading content...