lev
levenshtein
cargo install levenshtein
lev

levenshtein

Levenshtein algorithm in Rust

by Titus

1.0.4 (see all)License:MIT
cargo install levenshtein
Readme

levenshtein.rs Build Status

Vladimir Levenshtein’s edit distance algorithm as a Rust library. There’s also a C library, C user command, and JavaScript module.

🎉 This is my first attempt at Rust!

Installation

Cargo:

[dependencies]
levenshtein = "1.0.4"

Usage

extern crate levenshtein;
use levenshtein::levenshtein;

fn main() {
    println!("{}", levenshtein("kitten", "sitting"));
}

Yields:

API

fn levenshtein(a: &str, b: &str) -> usize

Given two strings, returns the edit distance between them.

License

MIT © Titus Wormer

GitHub Stars

25

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

5

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.0.4
3yrs ago
1.0.3
5yrs ago
1.0.2
5yrs ago
1.0.1
5yrs ago
No alternatives found
No tutorials found
Add a tutorial