Trait criterion_stats::tuple::TupledDistributionsBuilder[][src]

pub trait TupledDistributionsBuilder: Sized {
    type Item: Tuple<Builder = Self>;
    fn new(size: usize) -> Self;
fn push(&mut self, tuple: Self::Item);
fn extend(&mut self, other: &mut Self);
fn complete(self) -> <Self::Item as Tuple>::Distributions; }
[]

A tuple of vecs used to build distributions.

Associated Types

type Item: Tuple<Builder = Self>[src][]

A tuple that can be pushed/inserted into the tupled distributions

Required methods

fn new(size: usize) -> Self[src][]

Creates a new tuple of vecs

fn push(&mut self, tuple: Self::Item)[src][]

Push one element into each of the vecs

fn extend(&mut self, other: &mut Self)[src][]

Append one tuple of vecs to this one, leaving the vecs in the other tuple empty

fn complete(self) -> <Self::Item as Tuple>::Distributions[src][]

Convert the tuple of vectors into a tuple of distributions

Implementations on Foreign Types

impl<A> TupledDistributionsBuilder for (Vec<A>,) where
    A: Copy
[src][]

type Item = (A,)

impl<A, B> TupledDistributionsBuilder for (Vec<A>, Vec<B>) where
    A: Copy,
    B: Copy
[src][]

type Item = (A, B)

impl<A, B, C> TupledDistributionsBuilder for (Vec<A>, Vec<B>, Vec<C>) where
    A: Copy,
    B: Copy,
    C: Copy
[src][]

type Item = (A, B, C)

impl<A, B, C, D> TupledDistributionsBuilder for (Vec<A>, Vec<B>, Vec<C>, Vec<D>) where
    A: Copy,
    B: Copy,
    C: Copy,
    D: Copy
[src][]

type Item = (A, B, C, D)

Implementors