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ยง
- Func
Code Len - A newtype containing a function pointer dispatching the read method for a code.
- Func
Code Reader - A newtype containing a function pointer dispatching the read method for a code.
- Func
Code Writer - A newtype containing a function pointer dispatching the write method for a code.