pub trait Changeable {
// Required method
fn is_changed(&self) -> bool;
// Provided method
fn is_unchanged(obj: &Self) -> bool { ... }
}Expand description
Trait representing an object that can determine if it has changed.
Required Methods§
Sourcefn is_changed(&self) -> bool
fn is_changed(&self) -> bool
Checks if the object has changed.
Provided Methods§
Sourcefn is_unchanged(obj: &Self) -> bool
fn is_unchanged(obj: &Self) -> bool
Static method to check if an object has not changed.
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§
impl Changeable for ValueDiff
Available on crate feature
json_value only.impl Changeable for ValueMapDiff
Available on crate feature
json_value only.