Struct input::testutil::TestContext[][src]

pub struct TestContext {
    pub event_handler: EventHandler,
    pub number_events: usize,
}
Expand description

Context for a EventHandler based test.

Fields

event_handler: EventHandler

The EventHandler instance.

number_events: usize

The number of known available events.

Implementations

For each known event, call the callback with the EventHandler instance.

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.