Skip to main content

ChangeTracker

Trait ChangeTracker 

Source
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§

Source

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.

Implementors§