pub trait ChangeTracker {
// Required method
fn get_changes(&self, prev: &Self) -> Vec<(&'static str, Value)>;
}Expand description
Trait for detecting changes in memory structures.
Required Methods§
Sourcefn get_changes(&self, prev: &Self) -> Vec<(&'static str, Value)>
fn get_changes(&self, prev: &Self) -> Vec<(&'static str, Value)>
Compare self with a previous state and return a list of changed fields. Returns a vector of (field_name, new_value).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.