Skip to main content

chronological

Function chronological 

Source
pub fn chronological<'a, K, T>(
    entries: impl Iterator<Item = (Id<K>, &'a T)>,
) -> Vec<Id<K>>
where K: IdKind, T: 'a,
Expand description

One order, every consumer (docs/doc-ng-design-notes.md, “Draw order is a derived policy”): ascending id — which is creation order, ids being monotonic counters — so painting in this order puts the newest entity on top. Hit-testing walks it back-to-front and the router places first-come-first-served, so the three cannot disagree.