Skip to main content

EitherInt

This class represents a flexible integer container that can hold 64-bit signed or unsigned integers, arbitrary-precision integers, or a reference to a Python object. It provides a unified interface for handling various integer representations across the Rust and Python boundary.

Attributes

AttributeTypeDescription
I64i64Stores a 64-bit signed integer value for standard numeric operations.
U64u64Stores a 64-bit unsigned integer value, though currently marked for potential internal use or future implementation.
BigIntBigIntStores an arbitrary-precision integer for calculations exceeding the capacity of standard 64-bit types.
PyBound< 'py, PyAny >Stores a reference to a generic Python object to allow interoperability with arbitrary Python-side numeric types.