[][src]Function bitap::levenshtein_static

pub fn levenshtein_static<I: Iterator<Item = usize>>(
    mask_iter: I,
    pattern_length: usize,
    max_distance: StaticMaxDistance
) -> Result<impl Iterator<Item = Match>, &'static str>

Like the levenshtein iterator adapter, but optimized for max_distances of 1-2.