Skip to main content

Module shape

Module shape 

Source
Expand description

Per-arity descriptions of the three scalar function shapes.

A Shape answers the questions that differ between EagerUnaryFunc, EagerBinaryFunc, and EagerVariadicFunc. Adding a modifier to an arity means adding a row to that arity’s table here, not writing expansion code.

EnumsΒ§

Modifier πŸ”’
A modifier that maps directly onto one optional trait method.
ReturnTy πŸ”’
The return type of a generated override method.
Shape πŸ”’
The three scalar function arities the macro generates for.

ConstantsΒ§

BINARY_MODIFIERS πŸ”’
UNARY_MODIFIERS πŸ”’
VARIADIC_MODIFIERS πŸ”’