Changeable

Trait Changeable 

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

Source

fn is_changed(&self) -> bool

Checks if the object has changed.

Provided Methods§

Source

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§

Source§

impl Changeable for ValueDiff

Available on crate feature json_value only.
Source§

impl Changeable for ValueMapDiff

Available on crate feature json_value only.
Source§

impl<K, T> Changeable for BTreeMapDiff<K, T>
where K: Hash + Eq + Ord, T: Diffable,

Source§

impl<K, T> Changeable for HashMapDiff<K, T>
where K: Hash + Eq, T: Diffable,

Source§

impl<T> Changeable for PrimitiveDiff<T>
where T: Diffable,

Source§

impl<T> Changeable for VecDiff<T>
where T: Diffable + PartialEq,

Source§

impl<T: Diffable> Changeable for CollectionDiffEntry<T>

Source§

impl<T: Diffable> Changeable for OptionDiff<T>