Trait Engine

Source
pub trait Engine<'elem, T>
where T: Eq + 'elem,
{ type Container; // Required method fn diff(&self, a: &'elem [T], b: &'elem [T]) -> Self::Container; }
Expand description

A difference engine provider

Any entity that implements this trait is responsible for providing a method that computes the diff between two inputs.

Required Associated Types§

Source

type Container

The container type to returned from the diff function

Required Methods§

Source

fn diff(&self, a: &'elem [T], b: &'elem [T]) -> Self::Container

Compute the shortest edit sequence that will turn a into b

Implementors§

Source§

impl<'elem, T> Engine<'elem, T> for Myers
where T: Eq + 'elem + Debug,