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

This will typically hold references to data from the structs that are being diffed.

This will typically be an owned version of Self::Delta.

Required methods

Diff self with some target end state, generating a patch that would convert self -> end_state.

Implementations on Foreign Types

Implementors