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§
- Small
Int - 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
. - Small
Uint - 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§
- Small
IntError - An error that occurred when processing a
SmallInt
.