Struct subplotlib::scenario::Scenario [−][src]
pub struct Scenario { /* fields omitted */ }
Expand description
The embodiment of a subplot scenario
Scenario objects are built up by the generated test functions and then run to completion. In rare cases they may be built up and cached for reuse for example if a scenario is a subroutine.
Implementations
Add a scenario step, with optional cleanup step function.
Register a type with the scenario contexts
Run the scenario to completion.
Running the scenario to completion requires running each step in turn. This will return the first encountered error, or unit if the scenario runs cleanly.
Panics
If any of the cleanup functions error, this will immediately panic.