[][src]Struct xi_rope::diff::LineHashDiff

pub struct LineHashDiff;

A line-oriented, hash based diff algorithm.

This works by taking a hash of each line in either document that has a length, ignoring leading whitespace, above some threshold.

Lines in the target document are matched against lines in the base document. When a match is found, it is extended forwards and backwards as far as possible.

This runs in O(n+m) in the lengths of the two ropes, and produces results on a variety of workloads that are comparable in quality (measured in terms of serialized diff size) with the results from using a suffix array, while being an order of magnitude faster.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]