Skip to main content

find_similar_ids

Function find_similar_ids 

Source
pub fn find_similar_ids(
    searched: &str,
    existing: &[String],
    max: usize,
) -> Vec<String>
Expand description

Find existing IDs similar to the searched ID.

Returns up to max suggestions with edit distance ≤ 3, sorted by distance then alphabetically.