ifc_model/index.rs
1//! Type buckets and reverse-reference indices.
2//!
3//! `ids_of_type` is served by an index built during insertion, because "every
4//! entity of this type" is the most common query any consumer makes. The
5//! reverse index is built on demand instead -- see `reverse.rs` for why.
6//!
7//! ## Internal split
8//!
9//! - `reverse.rs`: target-to-referrer and slot reverse index.
10//! - `maintained.rs`: the reverse and GlobalId indexes a model keeps once
11//! built, and the write footprints that update them.
12
13mod maintained;
14mod reverse;
15
16pub(crate) use maintained::{Derived, Footprint};
17pub use reverse::{Referrer, ReverseIndex};