pub struct ChangeSet {
pub frame: u64,
pub created: Vec<NodeId>,
pub removed: Vec<NodeId>,
pub children: Vec<NodeId>,
pub touched: Vec<NodeId>,
pub effects: Vec<u8>,
pub tables: Vec<TableChanges>,
pub resources_defined: Vec<ResourceId>,
pub resources_released: Vec<ResourceId>,
/* private fields */
}Expand description
One frame of changes.
Fields§
§frame: u64§created: Vec<NodeId>Nodes created this frame (and still live), in creation order.
removed: Vec<NodeId>Nodes removed this frame that existed before it (descendants before ancestors).
children: Vec<NodeId>Parents whose child list changed.
touched: Vec<NodeId>Nodes with any effect this frame, with their effect bits.
effects: Vec<u8>§tables: Vec<TableChanges>Per-table row changes (only tables that changed).
resources_defined: Vec<ResourceId>§resources_released: Vec<ResourceId>Implementations§
Source§impl ChangeSet
impl ChangeSet
Sourcepub fn table(&self, slot: TableSlot) -> Option<&TableChanges>
pub fn table(&self, slot: TableSlot) -> Option<&TableChanges>
Changes of slot, if it changed this frame.
Sourcepub fn tables(&self) -> &[TableChanges]
pub fn tables(&self) -> &[TableChanges]
Changed tables.
Sourcepub fn effects_union(&self) -> u8
pub fn effects_union(&self) -> u8
Union of all effects this frame.
Sourcepub fn needs_layout(&self) -> bool
pub fn needs_layout(&self) -> bool
Whether any node needs relayout.
pub fn is_empty(&self) -> bool
Sourcepub fn reserve_for_frame0(
&mut self,
node_count: usize,
payload_bytes: usize,
) -> Result<(), TryReserveError>
pub fn reserve_for_frame0( &mut self, node_count: usize, payload_bytes: usize, ) -> Result<(), TryReserveError>
Fallibly pre-sizes top-level vectors ahead of a bulk NV02 keyframe commit (Frame0File
boot), bounded by payload_bytes / 4 and NodeId::MAX_INDEX.
Sourcepub fn copy_from(&mut self, other: &ChangeSet)
pub fn copy_from(&mut self, other: &ChangeSet)
Overwrites self with a copy of other while reusing existing Vec capacities.
Sourcepub fn merge_from(&mut self, other: &ChangeSet)
pub fn merge_from(&mut self, other: &ChangeSet)
Merges other into self while preserving Vec capacities and reconciling nodes created
in self and removed in other (preventing create-then-remove resurrection across
multi-pump ticks).