Distribution

Trait Distribution 

Source
pub trait Distribution: Debug {
    // Required method
    fn generate(&self, n: usize) -> Vec<usize>;
}
Expand description

This trait defines a Distribution in an abstract way.

Without implementing lower level mechanisms this trait defines the shared behaviour of a distribution, i.e. the property of being able to generate the input sizes.

Required Methods§

Source

fn generate(&self, n: usize) -> Vec<usize>

Generates a vector of input sizes. The number of input sizes to generate is given as argument.

Implementors§