[−][src]Crate weighted_levenshtein
weighted_levenshtein
A generic implementation of Levenshtein distance that supports arbitrary weighting of edit operations.
Optional Features
default-weight
(requiresfeature(specialization)
, so nightly Rust): Provides a default implementation ofEditWeight
for anyPartialEq
type. All operations have weight1
.
Traits
EditWeight | Trait for types that have custom costs for addition/removal and substitution. |
Functions
distance | Compute the Levenshtein distance between two sequences. |