int-interval-set
Integer half-open interval set structures built on top of int-interval.
This crate provides efficient representations of integer interval sets ([start, end_excl)) with a focus on predictable semantics and low-overhead abstractions.
Features
- Half-open interval semantics (
[start, end)) - Automatic normalization (merge overlapping / adjacent intervals)
- Efficient point and interval queries
- Codegen-based implementations for zero-cost abstractions
Implementation Status
Currently implemented:
- Batch (unsigned): optimized for bulk construction and read-heavy workloads
Planned (not yet implemented):
- Online: incremental updates with dynamic structure
- Signed types support
Example
use U8CO;
use U8COBatchSet;
let a = U8COtry_new.unwrap;
let b = U8COtry_new.unwrap;
let set = from;
assert!;
assert!;
assert_eq!;
Design
-
Built on top of
int-interval -
Separation of concerns:
- interval representation (
int-interval) - interval set structure (this crate)
- interval representation (
Status
Early-stage. APIs may evolve.
License
MIT OR Apache-2.0