Skip to main content

Module dynamic

Module dynamic 

Source
Expand description

Dynamic dispatching for codes based on function pointers.

This kind of dispatch is resolved at runtime, but just once, at construction time, against a specific CodesRead. The code is stored in a function pointer, so it cannot be inlined like in the static case, but the approach is more flexible.

Structsยง

FuncCodeLen
A newtype containing a function pointer dispatching the read method for a code.
FuncCodeReader
A newtype containing a function pointer dispatching the read method for a code.
FuncCodeWriter
A newtype containing a function pointer dispatching the write method for a code.