Trait dipa::Diffable [−][src]
pub trait Diffable<'s, 'e, Other: ?Sized> {
type Delta;
type DeltaOwned;
fn create_delta_towards(
&'s self,
end_state: &'e Other
) -> CreatedDelta<Self::Delta>;
}
Expand description
Allows a type to be diffed with another type.
Associated Types
type DeltaOwned
type DeltaOwned
This will typically be an owned version of Self::Delta
.
Required methods
fn create_delta_towards(
&'s self,
end_state: &'e Other
) -> CreatedDelta<Self::Delta>
fn create_delta_towards(
&'s self,
end_state: &'e Other
) -> CreatedDelta<Self::Delta>
Diff self with some target end state, generating a patch that would convert self -> end_state.