Struct ergothic::Simulation[][src]

pub struct Simulation { /* fields omitted */ }

Public interface to measure registry and the entry point function.

Methods

impl Simulation
[src]

Constructs a new simulation.

Registers a measure in the underlying measure registry and returns its positional index safely wrapped in the MeasureIdx type.

Entry point function. All ergothic simulations should call this function. Consumes self to indicate that the simulation runs in an infinite loop and never returns.

Auto Trait Implementations

impl Send for Simulation

impl Sync for Simulation