A Rust implementation of set-based interval arithmetic.
rustc
versionA recent version of the nightly toolchain is required, since the new asm!
macro is used. You need to specify the toolchain by, for example, the toolchain file in your crate (see example).
Haswell or newer microarchitecture is required. You need to specify the target CPU by, for example, the Cargo configuration file in your crate (see example; you may want to change native
to haswell
for maximum compatibility if you are planning to distribute your binary).
gmp
(enabled by default) - Enables operations that depend on GMP and MPFR, namely, transcendental functions and conversion between texts and intervals. You can opt-out the feature to reduce dependencies. Even in that case, you still have access to all arithmetic operations that are required for writing filters for robust geometric predicates.