Module tree_model

Source
Expand description

Stable-ID retained tree model with atomic mutations and a persistent flat index.

Removed IDs are retired permanently, batches commit all-or-nothing, and each nonempty successful batch advances a checked u64 revision exactly once.

Structs§

FlatTreeIndex
Persistent visible-row index. It changes only when a model mutation is committed, never during layout, paint, hit-test, or a pure scroll.
FlatTreeRow
One visible depth-first row in a FlatTreeIndex.
TreeItem
Stable retained item stored by TreeModel.
TreeModel
Retained hierarchical model with stable identifiers and an incremental presentation revision.
TreeModelDelta
One successfully committed atomic batch.
TreeModelHandle
UI-local shared handle for a retained tree model.
TreeModelSubscription
RAII subscription guard returned by TreeModelHandle::subscribe.

Enums§

TreeModelError
Validation failure for a retained tree mutation. The whole batch is rolled back on error.
TreeMutation
Atomic retained-tree mutation.