Macro fixt::fixturator [−][src]
implements a FooFixturator for any type Foo
this simply wraps Fixturator<Foo, Curve> up as FooFixturator
this macro serves a few purposes:
- we avoid the orphan rule that would prevent us implementing Iterator on Fixturator directly
- we avoid the verbosity of type and impl juggling around every new FooFixturator
- we create a FooFixturator implementation that is compatible with basic_test! macro
- we cover all three basic curves
- we standardiize the new() and new_indexed() methods without relying on traits
the expressions passed into the macro are the body of the next calls for Empty, Unpredictable and Predictable, in order