Macro fixt::curve

source ·
macro_rules! curve {
    ( $type:ident, $curve:ident, $e:expr ) => { ... };
}
Expand description

implement Iterator for a FooFixturator for a given curve

curve!(Foo, Unpredictable, /* make an Unpredictable Foo here */ );

simple wrapper around the standard Iterator trait from rust the expression in the third parameter to curve! is just the body of .next() without the need or ability to return an Option - i.e. return a value of type Foo not Option<Foo> if the body of the expression changes the index it will be respected, if not then it will be incremented by 1 automatically by the macro