Skip to main content

Module tagged_numeric

Module tagged_numeric 

Source
Expand description

Generic helper to support a tagged numeric value of 4 bytes and a boxed pointer in the same pointer value in 64-bit builds.

The over-all design is a tagged pointer, with the low bit of the pointer being non-zero if it is a non-boxed value. We need to pass the numeric type and tag as separate parameters to make sure that they pack along the tag that we use internally in InlineVariant.

Structs§

NumericUnion
cbindgen:derive-eq=false cbindgen:derive-neq=false

Enums§

Extracted
Returns the extracted data in a safe way.
Unpacked
Returns the data in a safe way.
UnpackedMut
As above, but mutable.