Skip to main content

make_offset

Macro make_offset 

Source
make_offset!() { /* proc-macro */ }
Expand description

Creates Offset out of passed expression. If the expression is a literal integer value, then this will check the value at compile time instead of runtime. Otherwise it will produce potential runtime validity checks, depending on compiler’s optimizations.