Module fuel_vm::interpreter::diff

source ·
Expand description

VM State Differences

This module provides the ability to generate diffs between two VMs internal states. The diff can then be used to invert a VM to the original state. This module is experimental work in progress and currently only used in testing although it could potentially stabilize to be used in production.

Structs

The Delta struct represents the difference between two states of the VM.
Family of state data that are implemented with the Delta struct. Captures the difference between the current and previous state of the VM.
A diff of VM state.
Family of state data that are implemented with the Previous struct. Captures the initial state of the VM.
The State type when capturing the initial state of the VM.

Traits

A trait that combines the Debug and Any traits.
A mapping between the kind of state that is being capture and the concrete data that is collected.