Skip to main content

Module state_diff

Module state_diff 

Source
Expand description

Content-addressed state diffing for distributed Shape.

Provides diff(old, new) and patch(base, delta) operations that compare values using content-hash trees. Only changed subtrees are included in the delta, enabling efficient state synchronization.

Structs§

Delta
A delta between two values, keyed by content path.

Functions§

content_hash_value
Compute a content hash for a ValueWord value.
diff_values
Compute the delta between two values.
patch_value
Apply a delta to a base value, producing the updated value.