Crates.io | levenshtein-distance |
lib.rs | levenshtein-distance |
version | 0.1.1 |
source | src |
created_at | 2022-07-20 13:47:35.183724 |
updated_at | 2022-07-20 13:47:35.183724 |
description | Levenshtein distance algorithm |
homepage | |
repository | https://github.com/kenkyu392/levenshtein-distance.rs |
max_upload_size | |
id | 628873 |
size | 3,928 |
Provides the Levenshtein distance algorithm for Rust.
[dependencies]
levenshtein-distance = "0.1.1"
use levenshtein_distance::compute;
fn main() {
let cat = "I Am a Cat";
let dog = "I Am a Dog";
println!("{}", compute(cat, dog));
// -> 3
}