Struct gbench::Instantiator[][src]

pub struct Instantiator { /* fields omitted */ }
Expand description

Instantiates global data on creation and deinstantiates it on drop

This struct instantiates global data upon creation and deinstantiates it upon drop. It also is responsible for calling the writers when the data is collected.

Using instantiate! macro instead of this struct is recommened.

Implementations

Constructs the instantiator

The writers will be called in end method.

Deinstantiates global variables and calls the writers

This method is used when Instantiator is never dropped.

Trait Implementations

Executes the destructor for this 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 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.