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

Create a new scenario with the given title

Retrieve the scenario title

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.

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 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.