windows-reactor 0.100.0

Declarative Windows UI library for Rust
Documentation
//! Pure planning logic for reconciling and mounting `Element`/`View` trees.
//!
//! These modules never touch [`NativeRuntime`], apply commands,
//! schedule effects, or mutate a published [`Pump`]; they only compute what
//! should change. `topology` holds tree-shape helpers shared by both planning
//! kinds; `element` plans plain element trees; `view` plans view/component
//! trees and depends on both `element` and `topology`.

mod element;
mod topology;
mod view;

use crate::core::keyed::KeyedOperation;

fn is_dense_keyed_update<K>(operations: &[KeyedOperation<K>]) -> bool {
    operations
        .iter()
        .filter(|operation| !matches!(operation, KeyedOperation::Remove { .. }))
        .count()
        >= 256
}