logo
pub struct Myers<T = u64> where
    T: BitVec
{ /* private fields */ }
Expand description

Myers algorithm.

Implementations

Calculate the global distance of the pattern to the given text.

Finds all matches of pattern in the given text up to a given maximum distance. Matches are returned as an iterator over pairs of end position and distance.

Find the best match of the pattern in the given text. if multiple end positions have the same distance, the first is returned.

Finds all matches of pattern in the given text up to a given maximum distance. In contrast to find_all_end, matches are returned as an iterator over ranges of (start, end, distance). Note that the end coordinate is not included in the range and thus and thus greater by one compared to the end index returned by find_all_end().

As find_all_end, this function returns an iterator over tuples of (end, distance). Additionally, it keeps the data necessary for later obtaining the starting positions and/or the alignment path at any position that was already searched.

Create a new instance of Myers algorithm for a given pattern.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.