Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
levenshtein in datafusion::common::utils::datafusion_strsim - Rust
[go: Go Back, main page]

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

Calculates the minimum number of insertions, deletions, and substitutions required to change one string into the other.

use datafusion_common::utils::datafusion_strsim::levenshtein;

assert_eq!(3, levenshtein("kitten", "sitting"));