pub struct Experiment {
    pub specs: Specs,
    pub transform: Arc<dyn Fn() -> ResultTransform + Sync + Send>,
    pub locale: ResultLocale,
    pub run_count: usize,
    pub title: String,
    pub description: Option<String>,
    pub verbose: bool,
    pub num_threads: Option<usize>,
}
Expand description

It defines the simulation experiment.

Fields

specs: Specs

The simulation specs for the experiment.

transform: Arc<dyn Fn() -> ResultTransform + Sync + Send>

How the results must be transformed before rendering.

locale: ResultLocale

Specifies a locale.

run_count: usize

How many simulation runs should be launched.

title: String

The experiment title.

description: Option<String>

The experiment description.

verbose: bool

Whether the process of generating the results is verbose.

num_threads: Option<usize>

The number of threads used when running the simulation experiment (can be ignored).

Implementations

Run the simulation experiment with the specified executor.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.