Skip to main content

classify_updates

Function classify_updates 

Source
pub fn classify_updates<F>(
    structural_dirty: bool,
    updates: &[PendingStyleUpdate],
    resolve_id: F,
) -> UpdateScope
where F: Fn(usize) -> Option<String>,
Expand description

保留中のスタイル更新群と構造ダーティフラグから、処理範囲を判定する。

resolve_id は node_idx からその要素の RenderElement 照合用 element_id を 解決するクロージャ。要素に id が無い場合は None を返し、安全に Relayout へフォールバックする。