Trait HasChanges

Source
pub trait HasChanges {
    type Change<'a>
       where Self: 'a;

    // Required method
    fn collect_changes<'a>(
        old: &'a Self,
        new: &'a Self,
        out: &mut Vec<Self::Change<'a>>,
    )
       where Self: 'a;
}
Expand description

Implemented automatically by #[derive(Diff)].

Required Associated Types§

Source

type Change<'a> where Self: 'a

Required Methods§

Source

fn collect_changes<'a>( old: &'a Self, new: &'a Self, out: &mut Vec<Self::Change<'a>>, )
where Self: 'a,

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§