pub struct IsoTestApi<A: Iso>(_);
Expand description

The API passed into an isotest in the Test context.

The isotest! macro is a bit sneaky, passing in APIs with different function signatures for each context, so that the test can be written the same lexically, but actually expand to two different tests working with two different types.

Implementations

Constructor

Create test data from test data (identity function)

Update test data with a function over test data (simple map)

Mutate test data with a function over test data (simple mutable map)

Return the context we’re in

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.