Crate smallint

Source
Expand description

A crate for small integer optimization. Provides the SmallInt type. When possible this will inline an integer and store it on the stack if that integer is small. However, for larger values, this will be instead stored on the heap as a pointer to a u32 slice, a length, and a sign.

Structs§

SmallInt
An integer-like type that will store small integers up to i128 inline. Larger integers are represented as a slice to a sequence of base 232 digits represented as a *mut u32.
SmallUint
An integer-like type that will store small integers up to u128 inline. Larger integers are represented as a slice to a sequence of base 232 digits represented as a *mut u32.

Enums§

SmallIntError
An error that occurred when processing a SmallInt.