pub trait Diffable<Other> {
const KIND: DiffKind;
// Required method
fn diff(&self, other: Other) -> Diff;
}
Available on crate feature
diff
only.Expand description
A value which can be diffed against another value.
Diffing two values produces a Diff
, which consists of a list of DiffSegment
s.
Required Associated Constants§
Required Methods§
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.