pub type SceneUpdates<'a> = &'a [(NodeId, NodeUpdate)];Expand description
The nodes whose drawing changed since the last scene, each with the
update it needs. A node may be named more than once: its updates merge
(see NodeUpdate::merge).
use cranpose_core::NodeId;
use cranpose_render_common::{NodeUpdate, SceneUpdates};
let updates: SceneUpdates<'_> = &[
(NodeId(1), NodeUpdate::Content),
(NodeId(3), NodeUpdate::Moved),
];
assert_eq!(updates.len(), 2);