Module static

Source
Expand description

Static dispatch for codes.

This kind of dispatch is resolved at compile time against a specific CodesRead. Thus, the code can be inlined and optimized, contrarily to the dynamic case, but you have less flexibility as codes have to be chosen at compile time.

Modules§

code_consts
The constants to use as generic parameter for the ConstCode struct.

Structs§

ConstCode
A zero-sized struct with a const generic parameter representing a code using the values exported by the code_consts module.